// source --> https://www.theshadegallery.com/wp-content/cache/autoptimize/js/autoptimize_875607235f03d0fbe32e9a1355aa87d8.js /*! jQuery Migrate v1.4.1 | (c) jQuery Foundation and other contributors | jquery.org/license */ "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(a,b,c){function d(c){var d=b.console;f[c]||(f[c]=!0,a.migrateWarnings.push(c),d&&d.warn&&!a.migrateMute&&(d.warn("JQMIGRATE: "+c),a.migrateTrace&&d.trace&&d.trace()))}function e(b,c,e,f){if(Object.defineProperty)try{return void Object.defineProperty(b,c,{configurable:!0,enumerable:!0,get:function(){return d(f),e},set:function(a){d(f),e=a}})}catch(g){}a._definePropertyBroken=!0,b[c]=e}a.migrateVersion="1.4.1";var f={};a.migrateWarnings=[],b.console&&b.console.log&&b.console.log("JQMIGRATE: Migrate is installed"+(a.migrateMute?"":" with logging active")+", version "+a.migrateVersion),a.migrateTrace===c&&(a.migrateTrace=!0),a.migrateReset=function(){f={},a.migrateWarnings.length=0},"BackCompat"===document.compatMode&&d("jQuery is not compatible with Quirks Mode");var g=a("",{size:1}).attr("size")&&a.attrFn,h=a.attr,i=a.attrHooks.value&&a.attrHooks.value.get||function(){return null},j=a.attrHooks.value&&a.attrHooks.value.set||function(){return c},k=/^(?:input|button)$/i,l=/^[238]$/,m=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,n=/^(?:checked|selected)$/i;e(a,"attrFn",g||{},"jQuery.attrFn is deprecated"),a.attr=function(b,e,f,i){var j=e.toLowerCase(),o=b&&b.nodeType;return i&&(h.length<4&&d("jQuery.fn.attr( props, pass ) is deprecated"),b&&!l.test(o)&&(g?e in g:a.isFunction(a.fn[e])))?a(b)[e](f):("type"===e&&f!==c&&k.test(b.nodeName)&&b.parentNode&&d("Can't change the 'type' of an input or button in IE 6/7/8"),!a.attrHooks[j]&&m.test(j)&&(a.attrHooks[j]={get:function(b,d){var e,f=a.prop(b,d);return f===!0||"boolean"!=typeof f&&(e=b.getAttributeNode(d))&&e.nodeValue!==!1?d.toLowerCase():c},set:function(b,c,d){var e;return c===!1?a.removeAttr(b,d):(e=a.propFix[d]||d,e in b&&(b[e]=!0),b.setAttribute(d,d.toLowerCase())),d}},n.test(j)&&d("jQuery.fn.attr('"+j+"') might use property instead of attribute")),h.call(a,b,e,f))},a.attrHooks.value={get:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?i.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value') no longer gets properties"),b in a?a.value:null)},set:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?j.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value', val) no longer sets properties"),void(a.value=b))}};var o,p,q=a.fn.init,r=a.find,s=a.parseJSON,t=/^\s*)([^>]*)$/;a.fn.init=function(b,e,f){var g,h;return b&&"string"==typeof b&&!a.isPlainObject(e)&&(g=w.exec(a.trim(b)))&&g[0]&&(t.test(b)||d("$(html) HTML strings must start with '<' character"),g[3]&&d("$(html) HTML text after last tag is ignored"),"#"===g[0].charAt(0)&&(d("HTML string cannot start with a '#' character"),a.error("JQMIGRATE: Invalid selector string (XSS)")),e&&e.context&&e.context.nodeType&&(e=e.context),a.parseHTML)?q.call(this,a.parseHTML(g[2],e&&e.ownerDocument||e||document,!0),e,f):(h=q.apply(this,arguments),b&&b.selector!==c?(h.selector=b.selector,h.context=b.context):(h.selector="string"==typeof b?b:"",b&&(h.context=b.nodeType?b:e||document)),h)},a.fn.init.prototype=a.fn,a.find=function(a){var b=Array.prototype.slice.call(arguments);if("string"==typeof a&&u.test(a))try{document.querySelector(a)}catch(c){a=a.replace(v,function(a,b,c,d){return"["+b+c+'"'+d+'"]'});try{document.querySelector(a),d("Attribute selector with '#' must be quoted: "+b[0]),b[0]=a}catch(e){d("Attribute selector with '#' was not fixed: "+b[0])}}return r.apply(this,b)};var x;for(x in r)Object.prototype.hasOwnProperty.call(r,x)&&(a.find[x]=r[x]);a.parseJSON=function(a){return a?s.apply(this,arguments):(d("jQuery.parseJSON requires a valid JSON string"),null)},a.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a.browser||(o=a.uaMatch(navigator.userAgent),p={},o.browser&&(p[o.browser]=!0,p.version=o.version),p.chrome?p.webkit=!0:p.webkit&&(p.safari=!0),a.browser=p),e(a,"browser",a.browser,"jQuery.browser is deprecated"),a.boxModel=a.support.boxModel="CSS1Compat"===document.compatMode,e(a,"boxModel",a.boxModel,"jQuery.boxModel is deprecated"),e(a.support,"boxModel",a.support.boxModel,"jQuery.support.boxModel is deprecated"),a.sub=function(){function b(a,c){return new b.fn.init(a,c)}a.extend(!0,b,this),b.superclass=this,b.fn=b.prototype=this(),b.fn.constructor=b,b.sub=this.sub,b.fn.init=function(d,e){var f=a.fn.init.call(this,d,e,c);return f instanceof b?f:b(f)},b.fn.init.prototype=b.fn;var c=b(document);return d("jQuery.sub() is deprecated"),b},a.fn.size=function(){return d("jQuery.fn.size() is deprecated; use the .length property"),this.length};var y=!1;a.swap&&a.each(["height","width","reliableMarginRight"],function(b,c){var d=a.cssHooks[c]&&a.cssHooks[c].get;d&&(a.cssHooks[c].get=function(){var a;return y=!0,a=d.apply(this,arguments),y=!1,a})}),a.swap=function(a,b,c,e){var f,g,h={};y||d("jQuery.swap() is undocumented and deprecated");for(g in b)h[g]=a.style[g],a.style[g]=b[g];f=c.apply(a,e||[]);for(g in b)a.style[g]=h[g];return f},a.ajaxSetup({converters:{"text json":a.parseJSON}});var z=a.fn.data;a.fn.data=function(b){var e,f,g=this[0];return!g||"events"!==b||1!==arguments.length||(e=a.data(g,b),f=a._data(g,b),e!==c&&e!==f||f===c)?z.apply(this,arguments):(d("Use of jQuery.fn.data('events') is deprecated"),f)};var A=/\/(java|ecma)script/i;a.clean||(a.clean=function(b,c,e,f){c=c||document,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,d("jQuery.clean() is deprecated");var g,h,i,j,k=[];if(a.merge(k,a.buildFragment(b,c).childNodes),e)for(i=function(a){return!a.type||A.test(a.type)?f?f.push(a.parentNode?a.parentNode.removeChild(a):a):e.appendChild(a):void 0},g=0;null!=(h=k[g]);g++)a.nodeName(h,"script")&&i(h)||(e.appendChild(h),"undefined"!=typeof h.getElementsByTagName&&(j=a.grep(a.merge([],h.getElementsByTagName("script")),i),k.splice.apply(k,[g+1,0].concat(j)),g+=j.length));return k});var B=a.event.add,C=a.event.remove,D=a.event.trigger,E=a.fn.toggle,F=a.fn.live,G=a.fn.die,H=a.fn.load,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",J=new RegExp("\\b(?:"+I+")\\b"),K=/(?:^|\s)hover(\.\S+|)\b/,L=function(b){return"string"!=typeof b||a.event.special.hover?b:(K.test(b)&&d("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),b&&b.replace(K,"mouseenter$1 mouseleave$1"))};a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a.event.dispatch&&e(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),a.event.add=function(a,b,c,e,f){a!==document&&J.test(b)&&d("AJAX events should be attached to document: "+b),B.call(this,a,L(b||""),c,e,f)},a.event.remove=function(a,b,c,d,e){C.call(this,a,L(b)||"",c,d,e)},a.each(["load","unload","error"],function(b,c){a.fn[c]=function(){var a=Array.prototype.slice.call(arguments,0);return"load"===c&&"string"==typeof a[0]?H.apply(this,a):(d("jQuery.fn."+c+"() is deprecated"),a.splice(0,0,c),arguments.length?this.bind.apply(this,a):(this.triggerHandler.apply(this,a),this))}}),a.fn.toggle=function(b,c){if(!a.isFunction(b)||!a.isFunction(c))return E.apply(this,arguments);d("jQuery.fn.toggle(handler, handler...) is deprecated");var e=arguments,f=b.guid||a.guid++,g=0,h=function(c){var d=(a._data(this,"lastToggle"+b.guid)||0)%g;return a._data(this,"lastToggle"+b.guid,d+1),c.preventDefault(),e[d].apply(this,arguments)||!1};for(h.guid=f;gh;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(){function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;be;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a){function b(a){var b=parseFloat(a),c=-1===a.indexOf("%")&&!isNaN(b);return c&&b}function c(){}function d(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=g.length;c>b;b++){var d=g[b];a[d]=0}return a}function e(c){function e(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||f("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),c}}(),k=c("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var g=document.body||document.documentElement;g.appendChild(e);var h=j(e);l=200===b(h.width),g.removeChild(e)}}}function h(a){if(e(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var c=j(a);if("none"===c.display)return d();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var h=f.isBorderBox=!(!k||!c[k]||"border-box"!==c[k]),m=0,n=g.length;n>m;m++){var o=g[m],p=c[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=h&&l,y=b(c.width);y!==!1&&(f.width=y+(x?0:r+v));var z=b(c.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||-1===c.indexOf("%"))return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return h}var f="undefined"==typeof console?c:function(a){console.error(a)},g=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],e):"object"==typeof exports?module.exports=e(require("desandro-get-style-property")):a.getSize=e(a.getStyleProperty)}(window),function(a){function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;c>a;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(a){function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;f>e;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;d>c;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a,b){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.docReady,a.matchesSelector)}(window,function(a,b,c){var d={};d.extend=function(a,b){for(var c in b)a[c]=b[c];return a},d.modulo=function(a,b){return(a%b+b)%b};var e=Object.prototype.toString;d.isArray=function(a){return"[object Array]"==e.call(a)},d.makeArray=function(a){var b=[];if(d.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0,e=a.length;e>c;c++)b.push(a[c]);else b.push(a);return b},d.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},d.removeFrom=function(a,b){var c=d.indexOf(a,b);-1!=c&&a.splice(c,1)},d.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1==a.nodeType&&"string"==typeof a.nodeName},d.setText=function(){function a(a,c){b=b||(void 0!==document.documentElement.textContent?"textContent":"innerText"),a[b]=c}var b;return a}(),d.getParent=function(a,b){for(;a!=document.body;)if(a=a.parentNode,c(a,b))return a},d.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},d.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},d.filterFindElements=function(a,b){a=d.makeArray(a);for(var e=[],f=0,g=a.length;g>f;f++){var h=a[f];if(d.isElement(h))if(b){c(h,b)&&e.push(h);for(var i=h.querySelectorAll(b),j=0,k=i.length;k>j;j++)e.push(i[j])}else e.push(h)}return e},d.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},d.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var f=a.console;return d.htmlInit=function(c,e){b(function(){for(var b=d.toDashed(e),g=document.querySelectorAll(".js-"+b),h="data-"+b+"-options",i=0,j=g.length;j>i;i++){var k,l=g[i],m=l.getAttribute(h);try{k=m&&JSON.parse(m)}catch(n){f&&f.error("Error parsing "+h+" on "+l.nodeName.toLowerCase()+(l.id?"#"+l.id:"")+": "+n);continue}var o=new c(l,k),p=a.jQuery;p&&p.data(l,e,o)}})},d}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Outlayer={},a.Outlayer.Item=b(a,a.EventEmitter,a.getSize,a.getStyleProperty,a.fizzyUIUtils))}(window,function(a,b,c,d,e){function f(a){for(var b in a)return!1;return b=null,!0}function g(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}function h(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var i=a.getComputedStyle,j=i?function(a){return i(a,null)}:function(a){return a.currentStyle},k=d("transition"),l=d("transform"),m=k&&l,n=!!d("perspective"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[k],p=["transform","transition","transitionDuration","transitionProperty"],q=function(){for(var a={},b=0,c=p.length;c>b;b++){var e=p[b],f=d(e);f&&f!==e&&(a[e]=f)}return a}();e.extend(g.prototype,b.prototype),g.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.getSize=function(){this.size=c(this.element)},g.prototype.css=function(a){var b=this.element.style;for(var c in a){var d=q[c]||c;b[d]=a[c]}},g.prototype.getPosition=function(){var a=j(this.element),b=this.layout.options,c=b.isOriginLeft,d=b.isOriginTop,e=a[c?"left":"right"],f=a[d?"top":"bottom"],g=this.layout.size,h=-1!=e.indexOf("%")?parseFloat(e)/100*g.width:parseInt(e,10),i=-1!=f.indexOf("%")?parseFloat(f)/100*g.height:parseInt(f,10);h=isNaN(h)?0:h,i=isNaN(i)?0:i,h-=c?g.paddingLeft:g.paddingRight,i-=d?g.paddingTop:g.paddingBottom,this.position.x=h,this.position.y=i},g.prototype.layoutPosition=function(){var a=this.layout.size,b=this.layout.options,c={},d=b.isOriginLeft?"paddingLeft":"paddingRight",e=b.isOriginLeft?"left":"right",f=b.isOriginLeft?"right":"left",g=this.position.x+a[d];c[e]=this.getXValue(g),c[f]="";var h=b.isOriginTop?"paddingTop":"paddingBottom",i=b.isOriginTop?"top":"bottom",j=b.isOriginTop?"bottom":"top",k=this.position.y+a[h];c[i]=this.getYValue(k),c[j]="",this.css(c),this.emitEvent("layout",[this])},g.prototype.getXValue=function(a){var b=this.layout.options;return b.percentPosition&&!b.isHorizontal?a/this.layout.size.width*100+"%":a+"px"},g.prototype.getYValue=function(a){var b=this.layout.options;return b.percentPosition&&b.isHorizontal?a/this.layout.size.height*100+"%":a+"px"},g.prototype._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.prototype.getTranslate=function(a,b){var c=this.layout.options;return a=c.isOriginLeft?a:-a,b=c.isOriginTop?b:-b,n?"translate3d("+a+"px, "+b+"px, 0)":"translate("+a+"px, "+b+"px)"},g.prototype.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},g.prototype.moveTo=m?g.prototype._transitionTo:g.prototype.goTo,g.prototype.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},g.prototype._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},g.prototype._transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var r="opacity,"+h(q.transform||"transform");g.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:r,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(o,this,!1))},g.prototype.transition=g.prototype[k?"_transition":"_nonTransition"],g.prototype.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},g.prototype.onotransitionend=function(a){this.ontransitionend(a)};var s={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};g.prototype.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,c=s[a.propertyName]||a.propertyName;if(delete b.ingProperties[c],f(b.ingProperties)&&this.disableTransition(),c in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[c]),c in b.onEnd){var d=b.onEnd[c];d.call(this),delete b.onEnd[c]}this.emitEvent("transitionEnd",[this])}},g.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},g.prototype._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var t={transitionProperty:"",transitionDuration:""};return g.prototype.removeTransitionStyles=function(){this.css(t)},g.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},g.prototype.remove=function(){if(!k||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var a=this;this.once("transitionEnd",function(){a.removeElem()}),this.hide()},g.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},g.prototype.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},g.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},g.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},g}),function(a,b){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f,g){return b(a,c,d,e,f,g)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.eventie,a.EventEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e,f){function g(a,b){var c=e.getQueryElement(a);if(!c)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,i&&(this.$element=i(this.element)),this.options=e.extend({},this.constructor.defaults),this.option(b);var d=++k;this.element.outlayerGUID=d,l[d]=this,this._create(),this.options.isInitLayout&&this.layout()}var h=a.console,i=a.jQuery,j=function(){},k=0,l={};return g.namespace="outlayer",g.Item=f,g.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e.extend(g.prototype,c.prototype),g.prototype.option=function(a){e.extend(this.options,a)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0,f=b.length;f>e;e++){var g=b[e],h=new c(g,this);d.push(h)}return d},g.prototype._filterFindItemElements=function(a){return e.filterFindElements(a,this.options.itemSelector)},g.prototype.getItemElements=function(){for(var a=[],b=0,c=this.items.length;c>b;b++)a.push(this.items[b].element);return a},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,a),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=d(this.element)},g.prototype._getMeasurement=function(a,b){var c,f=this.options[a];f?("string"==typeof f?c=this.element.querySelector(f):e.isElement(f)&&(c=f),this[a]=c?d(c)[b]:f):this[a]=0},g.prototype.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},g.prototype._getItemsForLayout=function(a){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c];e.isIgnored||b.push(e)}return b},g.prototype._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){for(var c=[],d=0,e=a.length;e>d;d++){var f=a[d],g=this._getItemLayoutPosition(f);g.item=f,g.isInstant=b||f.isLayoutInstant,c.push(g)}this._processLayoutQueue(c)}},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this._positionItem(d.item,d.x,d.y,d.isInstant)}},g.prototype._positionItem=function(a,b,c,d){d?a.goTo(b,c):a.moveTo(b,c)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var a=this._getContainerSize();a&&(this._setContainerMeasure(a.width,!0),this._setContainerMeasure(a.height,!1))}},g.prototype._getContainerSize=j,g.prototype._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},g.prototype._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g===f&&c()}var e=this,f=b.length;if(!b||!f)return void c();for(var g=0,h=0,i=b.length;i>h;h++){var j=b[h];j.once(a,d)}},g.prototype.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),i)if(this.$element=this.$element||i(this.element),b){var e=i.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},g.prototype.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},g.prototype.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},g.prototype.stamp=function(a){if(a=this._find(a)){this.stamps=this.stamps.concat(a);for(var b=0,c=a.length;c>b;b++){var d=a[b];this.ignore(d)}}},g.prototype.unstamp=function(a){if(a=this._find(a))for(var b=0,c=a.length;c>b;b++){var d=a[b];e.removeFrom(this.stamps,d),this.unignore(d)}},g.prototype._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=e.makeArray(a)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var a=0,b=this.stamps.length;b>a;a++){var c=this.stamps[a];this._manageStamp(c)}}},g.prototype._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},g.prototype._manageStamp=j,g.prototype._getElementOffset=function(a){var b=a.getBoundingClientRect(),c=this._boundingRect,e=d(a),f={left:b.left-c.left-e.marginLeft,top:b.top-c.top-e.marginTop,right:c.right-b.right-e.marginRight,bottom:c.bottom-b.bottom-e.marginBottom};return f},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.bindResize=function(){this.isResizeBound||(b.bind(a,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&b.unbind(a,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function a(){b.resize(),delete b.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var b=this;this.resizeTimeout=setTimeout(a,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var a=d(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},g.prototype.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},g.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},g.prototype.reveal=function(a){this._emitCompleteOnItems("reveal",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.reveal()}},g.prototype.hide=function(a){this._emitCompleteOnItems("hide",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.hide()}},g.prototype.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},g.prototype.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},g.prototype.getItem=function(a){for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];if(d.element===a)return d}},g.prototype.getItems=function(a){a=e.makeArray(a);for(var b=[],c=0,d=a.length;d>c;c++){var f=a[c],g=this.getItem(f);g&&b.push(g)}return b},g.prototype.remove=function(a){var b=this.getItems(a);if(this._emitCompleteOnItems("remove",b),b&&b.length)for(var c=0,d=b.length;d>c;c++){var f=b[c];f.remove(),e.removeFrom(this.items,f)}},g.prototype.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="";for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];d.destroy()}this.unbindResize();var e=this.element.outlayerGUID;delete l[e],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},g.data=function(a){a=e.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&l[b]},g.create=function(a,b){function c(){g.apply(this,arguments)}return Object.create?c.prototype=Object.create(g.prototype):e.extend(c.prototype,g.prototype),c.prototype.constructor=c,c.defaults=e.extend({},g.defaults),e.extend(c.defaults,b),c.prototype.settings={},c.namespace=a,c.data=g.data,c.Item=function(){f.apply(this,arguments)},c.Item.prototype=new f,e.htmlInit(c,a),i&&i.bridget&&i.bridget(a,c),c},g.Item=f,g}),function(a,b){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],b):"object"==typeof exports?module.exports=b(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):a.Masonry=b(a.Outlayer,a.getSize,a.fizzyUIUtils)}(window,function(a,b,c){var d=a.create("masonry");return d.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(0);this.maxY=0},d.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&1>g?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},d.prototype.getContainerWidth=function(){var a=this.options.isFitWidth?this.element.parentNode:this.element,c=b(a);this.containerWidth=c&&c.innerWidth},d.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,d=b&&1>b?"round":"ceil",e=Math[d](a.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var f=this._getColGroup(e),g=Math.min.apply(Math,f),h=c.indexOf(f,g),i={x:this.columnWidth*h,y:g},j=g+a.size.outerHeight,k=this.cols+1-f.length,l=0;k>l;l++)this.colYs[h+l]=j;return i},d.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},d.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this.options.isOriginLeft?d.left:d.right,f=e+c.outerWidth,g=Math.floor(e/this.columnWidth);g=Math.max(0,g);var h=Math.floor(f/this.columnWidth);h-=f%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var i=(this.options.isOriginTop?d.top:d.bottom)+c.outerHeight,j=g;h>=j;j++)this.colYs[j]=Math.max(i,this.colYs[j])},d.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this.options.isFitWidth&&(a.width=this._getContainerFitWidth()),a},d.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},d.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!==this.containerWidth},d}); (function(name,definition){if(typeof module!='undefined'){module.exports=definition()}else if(typeof define=='function'&&typeof define.amd=='object'){define(definition)}else{this[name]=definition()}})('Colibri',function(){var $=jQuery;if(typeof jQuery==='undefined'){throw new Error('Colibri requires jQuery')};(function($){var version=$.fn.jquery.split('.');if(version[0]===1&&version[1]<8){throw new Error('Colibri requires at least jQuery v1.8');}})(jQuery);var Colibri;var lib_prefix="colibri.";;(function(){Function.prototype.inherits=function(parent){var F=function(){};F.prototype=parent.prototype;var f=new F();for(var prop in this.prototype){f[prop]=this.prototype[prop];} this.prototype=f;this.prototype.super=parent.prototype;};Colibri=function(element,options){options=(typeof options==='object')?options:{};this.$element=$(element);var instanceId=this.$element.data('colibri-id');var instanceData=Colibri.getData(instanceId);this.instance=instanceId;var elementData=this.$element.data();this.opts=$.extend(true,{},this.defaults,$.fn[lib_prefix+this.namespace].options,elementData,instanceData,options);this.$target=(typeof this.opts.target==='string')?$(this.opts.target):null;};Colibri.getData=function(id){if(window.colibriData&&window.colibriData[id]){return window.colibriData[id];} return{};};Colibri.isCustomizerPreview=function(){return!!window.colibriCustomizerPreviewData;} Colibri.prototype={updateOpts:function(updatedData){var instanceId=this.instance;var instanceData=$.extend(true,{},this.defaults,Colibri.getData(instanceId));var updatedDataWithDefault=updatedData?updatedData:{};this.opts=$.extend(true,this.opts,instanceData,updatedDataWithDefault);},getInstance:function(){return this.$element.data('fn.'+this.namespace);},hasTarget:function(){return!(this.$target===null);},callback:function(type){var args=[].slice.call(arguments).splice(1);if(this.$element){args=this._fireCallback($._data(this.$element[0],'events'),type,this.namespace,args);} if(this.$target){args=this._fireCallback($._data(this.$target[0],'events'),type,this.namespace,args);} if(this.opts&&this.opts.callbacks&&$.isFunction(this.opts.callbacks[type])){return this.opts.callbacks[type].apply(this,args);} return args;},_fireCallback:function(events,type,eventNamespace,args){if(events&&typeof events[type]!=='undefined'){var len=events[type].length;for(var i=0;i1)?null:this.completeCallback;this.complete('AnimationEnd',$.proxy(this.makeComplete,this),_callback);},makeSimpleEffects:function(){if(this.effect==='show'){this.removeHideClass();}else if(this.effect==='hide'){this.revertHideClasses();} if(typeof this.completeCallback==='function'){this.completeCallback(this);}},makeComplete:function(){if(this.$element.hasClass(this.queue[0])){this.clean();this.queue.shift();if(this.queue.length){this.animate();}}},complete:function(type,make,callback){var events=type.split(' ').map(function(type){return type.toLowerCase()+' webkit'+type+' o'+type+' MS'+type;});this.$element.one(events.join(' '),$.proxy(function(){if(typeof make==='function'){make();} if(this.isHideableEffect()){this.revertHideClasses();} if(this.isSlideEffect()){this.removeElementHeight();} if(typeof callback==='function'){callback(this);} this.$element.off(event);},this));},clean:function(){this.$element.removeClass('colibri-animated').removeClass(this.queue[0]);}};Colibri.Animation.inherits(Colibri);}(Colibri));(function($){var animationName=lib_prefix+'animation';$.fn[animationName]=function(effect,callback){var name='fn.animation';return this.each(function(){var $this=$(this),data=$this.data(name);$this.data(name,{});$this.data(name,(data=new Colibri.Animation(this,effect,callback)));});};$.fn[animationName].options={};Colibri.animate=function($target,effect,callback){$target[animationName](effect,callback);return $target;}})(jQuery);(function(Colibri){Colibri.Detect=function(){};Colibri.Detect.prototype={isMobile:function(){return/(iPhone|iPod|BlackBerry|Android)/.test(navigator.userAgent);},isDesktop:function(){return!/(iPhone|iPod|iPad|BlackBerry|Android)/.test(navigator.userAgent);},isMobileScreen:function(){return($(window).width()<=768);},isTabletScreen:function(){return($(window).width()>=768&&$(window).width()<=1024);},isDesktopScreen:function(){return($(window).width()>1024);}};}(Colibri));(function(Colibri){Colibri.Utils=function(){};Colibri.Utils.prototype={disableBodyScroll:function(){var $body=$('html');var windowWidth=window.innerWidth;if(!windowWidth){var documentElementRect=document.documentElement.getBoundingClientRect();windowWidth=documentElementRect.right-Math.abs(documentElementRect.left);} var isOverflowing=document.body.clientWidth * Version: v2.0.9 * Url: https://github.com/mattboldt/typed.js * License(s): MIT * */ (function webpackUniversalModuleDefinition(root,factory){if(typeof exports==='object'&&typeof module==='object') module.exports=factory();else if(typeof define==='function'&&define.amd) define([],factory);else if(typeof exports==='object') exports["Typed"]=factory();else root["Typed"]=factory();})(this,function(){return(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]) return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.loaded=true;return module.exports;} __webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="";return __webpack_require__(0);}) ([(function(module,exports,__webpack_require__){'use strict';Object.defineProperty(exports,'__esModule',{value:true});var _createClass=(function(){function defineProperties(target,props){for(var i=0;icurString.length)break;} var stringBeforeSkip=curString.substring(0,curStrPos);var stringSkipped=curString.substring(stringBeforeSkip.length+1,curStrPos+numChars);var stringAfterSkip=curString.substring(curStrPos+numChars+1);curString=stringBeforeSkip+stringSkipped+stringAfterSkip;numChars--;} _this2.timeout=setTimeout(function(){_this2.toggleBlinking(false);if(curStrPos>=curString.length){_this2.doneTyping(curString,curStrPos);}else{_this2.keepTyping(curString,curStrPos,numChars);} if(_this2.temporaryPause){_this2.temporaryPause=false;_this2.options.onTypingResumed(_this2.arrayPos,_this2);}},pauseTime);},humanize);}},{key:'keepTyping',value:function keepTyping(curString,curStrPos,numChars){if(curStrPos===0){this.toggleBlinking(false);this.options.preStringTyped(this.arrayPos,this);} curStrPos+=numChars;var nextString=curString.substr(0,curStrPos);this.replaceText(nextString);this.typewrite(curString,curStrPos);}},{key:'doneTyping',value:function doneTyping(curString,curStrPos){var _this3=this;this.options.onStringTyped(this.arrayPos,this);this.toggleBlinking(true);if(this.arrayPos===this.strings.length-1){this.complete();if(this.loop===false||this.curLoop===this.loopCount){return;}} this.timeout=setTimeout(function(){_this3.backspace(curString,curStrPos);},this.backDelay);}},{key:'backspace',value:function backspace(curString,curStrPos){var _this4=this;if(this.pause.status===true){this.setPauseStatus(curString,curStrPos,true);return;} if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(false);var humanize=this.humanizer(this.backSpeed);this.timeout=setTimeout(function(){curStrPos=_htmlParserJs.htmlParser.backSpaceHtmlChars(curString,curStrPos,_this4);var curStringAtPosition=curString.substr(0,curStrPos);_this4.replaceText(curStringAtPosition);if(_this4.smartBackspace){var nextString=_this4.strings[_this4.arrayPos+1];if(nextString&&curStringAtPosition===nextString.substr(0,curStrPos)){_this4.stopNum=curStrPos;}else{_this4.stopNum=0;}} if(curStrPos>_this4.stopNum){curStrPos--;_this4.backspace(curString,curStrPos);}else if(curStrPos<=_this4.stopNum){_this4.arrayPos++;if(_this4.arrayPos===_this4.strings.length){_this4.arrayPos=0;_this4.options.onLastStringBackspaced();_this4.shuffleStringsIfNeeded();_this4.begin();}else{_this4.typewrite(_this4.strings[_this4.sequence[_this4.arrayPos]],curStrPos);}}},humanize);}},{key:'complete',value:function complete(){this.options.onComplete(this);if(this.loop){this.curLoop++;}else{this.typingComplete=true;}}},{key:'setPauseStatus',value:function setPauseStatus(curString,curStrPos,isTyping){this.pause.typewrite=isTyping;this.pause.curString=curString;this.pause.curStrPos=curStrPos;}},{key:'toggleBlinking',value:function toggleBlinking(isBlinking){if(!this.cursor)return;if(this.pause.status)return;if(this.cursorBlinking===isBlinking)return;this.cursorBlinking=isBlinking;if(isBlinking){this.cursor.classList.add('typed-cursor--blink');}else{this.cursor.classList.remove('typed-cursor--blink');}}},{key:'humanizer',value:function humanizer(speed){return Math.round(Math.random()*speed/2)+speed;}},{key:'shuffleStringsIfNeeded',value:function shuffleStringsIfNeeded(){if(!this.shuffle)return;this.sequence=this.sequence.sort(function(){return Math.random()-0.5;});}},{key:'initFadeOut',value:function initFadeOut(){var _this5=this;this.el.className+=' '+this.fadeOutClass;if(this.cursor)this.cursor.className+=' '+this.fadeOutClass;return setTimeout(function(){_this5.arrayPos++;_this5.replaceText('');if(_this5.strings.length>_this5.arrayPos){_this5.typewrite(_this5.strings[_this5.sequence[_this5.arrayPos]],0);}else{_this5.typewrite(_this5.strings[0],0);_this5.arrayPos=0;}},this.fadeOutDelay);}},{key:'replaceText',value:function replaceText(str){if(this.attr){this.el.setAttribute(this.attr,str);}else{if(this.isInput){this.el.value=str;}else if(this.contentType==='html'){this.el.innerHTML=str;}else{this.el.textContent=str;}}}},{key:'bindFocusEvents',value:function bindFocusEvents(){var _this6=this;if(!this.isInput)return;this.el.addEventListener('focus',function(e){_this6.stop();});this.el.addEventListener('blur',function(e){if(_this6.el.value&&_this6.el.value.length!==0){return;} _this6.start();});}},{key:'insertCursor',value:function insertCursor(){if(!this.showCursor)return;if(this.cursor)return;this.cursor=document.createElement('span');this.cursor.className='typed-cursor';this.cursor.innerHTML=this.cursorChar;this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling);}}]);return Typed;})();exports['default']=Typed;module.exports=exports['default'];}),(function(module,exports,__webpack_require__){'use strict';Object.defineProperty(exports,'__esModule',{value:true});var _extends=Object.assign||function(target){for(var i=1;i';}else{endTag=';';} while(curString.substr(curStrPos+1).charAt(0)!==endTag){curStrPos++;if(curStrPos+1>curString.length){break;}} curStrPos++;} return curStrPos;}},{key:'backSpaceHtmlChars',value:function backSpaceHtmlChars(curString,curStrPos,self){if(self.contentType!=='html')return curStrPos;var curChar=curString.substr(curStrPos).charAt(0);if(curChar==='>'||curChar===';'){var endTag='';if(curChar==='>'){endTag='<';}else{endTag='&';} while(curString.substr(curStrPos-1).charAt(0)!==endTag){curStrPos--;if(curStrPos<0){break;}} curStrPos--;} return curStrPos;}}]);return HTMLParser;})();exports['default']=HTMLParser;var htmlParser=new HTMLParser();exports.htmlParser=htmlParser;})])}); !function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s="zDcZ")}({"+JPL":function(t,e,i){t.exports={default:i("+SFK"),__esModule:!0}},"+SFK":function(t,e,i){i("AUvm"),i("wgeU"),i("adOz"),i("dl0q"),t.exports=i("WEpk").Symbol},"+ejm":function(t,e){!function(t,e){var i=function(i,n){this.namespace="masonry",this.defaults={},e.apply(this,arguments),this.bindedRestart=t.debounce(this.restart.bind(this),50),this.start()};function n(t,e){if(t[0].hasAttribute(e)&&"true"!=t.attr(e))return!0}i.prototype={start:function(){var e,i=this.$element;(this.opts.data&&this.opts.data.targetSelector&&(i=this.$element.find(this.opts.data.targetSelector)),this.$masonry=i,n(e=this.$element,"data-show-masonry")||n(e,"show-masonry"))||(this.$masonry.masonry({itemSelector:".masonry-item",columnWidth:".masonry-item",percentPosition:!0}),this.addEventListeners(),function(){var e=i.find("img"),n=0,s=0;function o(){if(n++,e.length===n)try{i.data().masonry.layout()}catch(t){console.error(t)}}e.each(function(){this.complete?(s++,o()):(t(this).on("load",o),t(this).on("error",o))}),e.length!==s&&"complete"==document.readyState&&setTimeout(function(){i.data().masonry.layout()},10),t(window).on("load",function(){i.data().masonry.layout()})}())},stop:function(){this.removeEventListeners();try{this.$masonry.masonry("destroy")}catch(t){}},restart:function(){this.stop(),this.start()},addEventListeners:function(){this.$element.on("colibriContainerOpened",this.bindedRestart)},removeEventListeners:function(){this.$element.off("colibriContainerOpened",this.bindedRestart)},loadImages:function(){}},i.inherits(e),e.masonry=i,e.Plugin.create("masonry"),e.Plugin.autoload("masonry")}(jQuery,Colibri)},"+plK":function(t,e,i){i("ApPD"),t.exports=i("WEpk").Object.getPrototypeOf},"/ChV":function(t,e){var i,n;i=jQuery,n=function(t){var e=i.extend({animationType:"rotate-1",animationDelay:2500,barAnimationDelay:3800,barWaiting:800,lettersDelay:50,typeLettersDelay:150,selectionDuration:500,typeAnimationDelay:1300,revealDuration:600,revealAnimationDelay:1500},t),n=e.animationDelay;function s(t){var n=a(t);if(t.parents(".ah-headline").hasClass("type")){var c=t.parent(".ah-words-wrapper");c.addClass("selected").removeClass("waiting"),setTimeout(function(){c.removeClass("selected"),t.removeClass("is-visible").addClass("is-hidden").children("i").removeClass("in").addClass("out")},e.selectionDuration),setTimeout(function(){o(n,e.typeLettersDelay)},e.typeAnimationDelay)}else if(t.parents(".ah-headline").hasClass("letters")){var h=t.children("i").length>=n.children("i").length;!function t(n,o,r,c){n.removeClass("in").addClass("out");n.is(":last-child")?r&&setTimeout(function(){s(a(o))},e.animationDelay):setTimeout(function(){t(n.next(),o,r,c)},c);if(n.is(":last-child")&&i("html").hasClass("no-csstransitions")){var h=a(o);l(o,h)}}(t.find("i").eq(0),t,h,e.lettersDelay),r(n.find("i").eq(0),n,h,e.lettersDelay)}else t.parents(".ah-headline").hasClass("clip")?t.parents(".ah-words-wrapper").animate({width:"2px"},e.revealDuration,function(){l(t,n),o(n)}):t.parents(".ah-headline").hasClass("loading-bar")?(t.parents(".ah-words-wrapper").removeClass("is-loading"),l(t,n),setTimeout(function(){s(n)},e.barAnimationDelay),setTimeout(function(){t.parents(".ah-words-wrapper").addClass("is-loading")},e.barWaiting)):(l(t,n),setTimeout(function(){s(n)},e.animationDelay))}function o(t,i){t.parents(".ah-headline").hasClass("type")?(r(t.find("i").eq(0),t,!1,i),t.addClass("is-visible").removeClass("is-hidden")):t.parents(".ah-headline").hasClass("clip")&&t.parents(".ah-words-wrapper").animate({width:t.width()+10},e.revealDuration,function(){setTimeout(function(){s(t)},e.revealAnimationDelay)})}function r(t,i,n,o){t.addClass("in").removeClass("out"),t.is(":last-child")?(i.parents(".ah-headline").hasClass("type")&&setTimeout(function(){i.parents(".ah-words-wrapper").addClass("waiting")},200),n||setTimeout(function(){s(i)},e.animationDelay)):setTimeout(function(){r(t.next(),i,n,o)},o)}function a(t){return t.is(":last-child")?t.parent().children().eq(0):t.next()}function l(t,e){t.removeClass("is-visible").addClass("is-hidden"),e.removeClass("is-hidden").addClass("is-visible")}this.each(function(){var t=i(this);if(e.animationType&&("type"===e.animationType||"rotate-2"===e.animationType||"rotate-3"===e.animationType||"scale"===e.animationType?t.find(".ah-headline").addClass("letters "+e.animationType):"clip"===e.animationType?t.find(".ah-headline").addClass(e.animationType+" is-full-width"):t.find(".ah-headline").addClass(e.animationType)),function(t){t.each(function(){var t=i(this),e=t.text().split(""),n=t.hasClass("is-visible");for(var s in e)t.parents(".rotate-2").length>0&&(e[s]=""+e[s]+""),e[s]=n?''+e[s]+"":""+e[s]+"";var o=e.join("");t.html(o).css("opacity",1)})}(i(".ah-headline.letters").find("b")),t.hasClass("loading-bar"))n=e.barAnimationDelay,setTimeout(function(){t.find(".ah-words-wrapper").addClass("is-loading")},e.barWaiting);else if(t.hasClass("clip")){var o=t.find(".ah-words-wrapper"),r=o.width()+10;o.css("width",r)}else if(!t.find(".ah-headline").hasClass("type")){var a=0;t.find(".ah-words-wrapper b").each(function(){var t=i(this).width();t>a&&(a=t)}),t.find(".ah-words-wrapper").css("width",a)}setTimeout(function(){s(t.find(".is-visible").eq(0))},n)})},window.wp&&window.wp.customize?i.fn.animatedHeadline=function(){var t=this,e=arguments;setTimeout(function(){n.apply(t,e)},100)}:i.fn.animatedHeadline=n},"/eQG":function(t,e,i){i("v5Dd");var n=i("WEpk").Object;t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)}},"1Qhi":function(t,e){t.exports=s,t.exports.isMobile=s;var i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function s(t){t||(t={});var e=t.ua;return e||"undefined"==typeof navigator||(e=navigator.userAgent),e&&e.headers&&"string"==typeof e.headers["user-agent"]&&(e=e.headers["user-agent"]),"string"==typeof e&&(t.tablet?n.test(e):i.test(e))}},"1cTi":function(t,e){var i,n,s=document.attachEvent,o=!1;function r(t){var e=t.__resizeTriggers__,i=e.firstElementChild,n=e.lastElementChild,s=i.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,s.style.width=i.offsetWidth+1+"px",s.style.height=i.offsetHeight+1+"px",i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight}function a(t){var e=this;r(this),this.__resizeRAF__&&c(this.__resizeRAF__),this.__resizeRAF__=l(function(){(function(t){return t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height})(e)&&(e.__resizeLast__.width=e.offsetWidth,e.__resizeLast__.height=e.offsetHeight,e.__resizeListeners__.forEach(function(i){i.call(e,t)}))})}if(!s){var l=(n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)},function(t){return n(t)}),c=(i=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout,function(t){return i(t)}),h=!1,u="",d="animationstart",f="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),m="",v=document.createElement("fakeelement");if(void 0!==v.style.animationName&&(h=!0),!1===h)for(var g=0;g div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',e=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),e.appendChild(i),o=!0}}(),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=document.createElement("div")).className="resize-triggers",t.__resizeTriggers__.innerHTML='
',t.appendChild(t.__resizeTriggers__),r(t),t.addEventListener("scroll",a,!0),d&&t.__resizeTriggers__.addEventListener(d,function(e){e.animationName==y&&r(t)})),t.__resizeListeners__.push(e))},window.removeResizeListener=function(t,e){if(s)t.detachEvent("onresize",e);else{if(!(t&&t.__resizeListeners__&&t.__resizeTriggers__))return;t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||(t.removeEventListener("scroll",a),t.__resizeTriggers__=!t.removeChild(t.__resizeTriggers__))}}},"29s/":function(t,e,i){var n=i("5T2Y"),s=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return s[t]||(s[t]={})}},"2GTP":function(t,e,i){var n=i("eaoh");t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,s){return t.call(e,i,n,s)}}return function(){return t.apply(e,arguments)}}},"2Nb0":function(t,e,i){i("FlQf"),i("bBy9"),t.exports=i("zLkG").f("iterator")},"2faE":function(t,e,i){var n=i("5K7Z"),s=i("eUtF"),o=i("G8Mo"),r=Object.defineProperty;e.f=i("jmDH")?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),s)try{return r(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},"3GJH":function(t,e,i){i("lCc8");var n=i("WEpk").Object;t.exports=function(t,e){return n.create(t,e)}},"4H15":function(t,e,i){"use strict";e.a={svgFancyTitle:{circle:'',curly:'',underline:'',double:'',"double-underline":'',"underline-zigzag":'',diagonal:'',strikethrough:'',x:''}}},"5K7Z":function(t,e,i){var n=i("93I4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},"5T2Y":function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},"5biZ":function(t,e,i){i("EnHN");var n=i("WEpk").Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},"5vMV":function(t,e,i){var n=i("B+OT"),s=i("NsO/"),o=i("W070")(!1),r=i("VVlx")("IE_PROTO");t.exports=function(t,e){var i,a=s(t),l=0,c=[];for(i in a)i!=r&&n(a,i)&&c.push(i);for(;e.length>l;)n(a,i=e[l++])&&(~o(c,i)||c.push(i));return c}},"6/1s":function(t,e,i){var n=i("YqAc")("meta"),s=i("93I4"),o=i("B+OT"),r=i("2faE").f,a=0,l=Object.isExtensible||function(){return!0},c=!i("KUxP")(function(){return l(Object.preventExtensions({}))}),h=function(t){r(t,n,{value:{i:"O"+ ++a,w:{}}})},u=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[n].i},getWeak:function(t,e){if(!o(t,n)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[n].w},onFreeze:function(t){return c&&u.NEED&&l(t)&&!o(t,n)&&h(t),t}}},"63br":function(t,e){!function(t,e){var i=function(t,i){this.namespace="counter",this.defaults={oldCheck:!1,newCheck:!1,firstTime:!1},e.apply(this,arguments),this.start()};i.prototype={start:function(){t.proxy(this.ready,this)(),t(window).scroll(t.proxy(this.ready,this))},stop:function(){},reset:function(t){var e=t.$element.children();t.$element.children().remove(),t.$element.append(e)},ready:function(){if(this.isScrolledIntoView(this)&&this.opts.oldCheck!==this.opts.newCheck&&!this.opts.firstTime&&(this.opts.firstTime=!0,this.opts.data)){var t=this.opts.data.type;switch(this.reset(this),t){case"number":this.countTo(this);break;case"circle":this.progressCircle(this);break;case"bar":this.progressBar(this)}}},isScrolledIntoView:function(e){var i=t(window).scrollTop(),n=i+t(window).height(),s=t(e.$element).offset().top,o=s+t(e.$element).height(),r=e.opts.newCheck,a=s<=n&&o>=i;return e.opts.oldCheck=r,e.opts.newCheck=a,a},countTo:function(e){var i=e.opts.data.data.countTo;e.$element.find(".h-counter-control").each(function(){t(this).prop("Counter",i.startVal).animate({Counter:i.endVal},{duration:1e3*i.duration,easing:"swing",step:function(n){t(this).text(i.options.prefix+e.ceil10(n,-i.decimals).toLocaleString("en")+i.options.suffix)}})})},progressBar:function(e){e.$element.find(".h-bar-progress").each(function(){t(this).find(".progress-bar").removeClass("progress-bar").addClass("progress-bar"),e.countTo(e)})},progressCircle:function(e){var i=e.opts.data.data.circle,n=e.opts.data.data.titlePosition;e.$element.find(".h-circle-progress").each(function(){var s=t(this).find(".counter-content"),o=t(this).find(".title-circle"),r='
';t(this).empty(),t(this).circleProgress({value:i.progress/100,size:i.size,fill:i.fill,animation:i.animation,lineCap:"round",showProcent:!1,insertMode:"append",emptyFill:i.emptyFill,startAngle:i.startAngle,thickness:i.tickeness}),t(this).css({display:"flex","align-items":"center","justify-content":"center"}),"above"===n?(t(this).append(r),t(this).find(".content-circle-inside").append(o),t(this).find(".content-circle-inside").append(s)):(t(this).append(r),t(this).find(".content-circle-inside").append(s),t(this).find(".content-circle-inside").append(o)),e.countTo(e)})},ceil10:function(t,e){return this.decimalAdjust("ceil",t,e)},decimalAdjust:function(t,e,i){return void 0===i||0==+i?Math[t](e):(e=+e,i=+i,isNaN(e)||"number"!=typeof i||i%1!=0?NaN:(e=e.toString().split("e"),+((e=(e=Math[t](+(e[0]+"e"+(e[1]?+e[1]-i:-i)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]+i:i))))}},i.inherits(e),e.counter=i,e.Plugin.create("counter"),e.Plugin.autoload("counter")}(jQuery,Colibri)},"6tYh":function(t,e,i){var n=i("93I4"),s=i("5K7Z"),o=function(t,e){if(s(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=i("2GTP")(Function.call,i("vwuL").f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return o(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:o}},"9/5/":function(t,e,i){(function(e){var i="Expected a function",n=NaN,s="[object Symbol]",o=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,h="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,d=h||u||Function("return this")(),f=Object.prototype.toString,p=Math.max,m=Math.min,v=function(){return d.Date.now()};function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function y(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&f.call(t)==s}(t))return n;if(g(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=g(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var i=a.test(t);return i||l.test(t)?c(t.slice(2),i?2:8):r.test(t)?n:+t}t.exports=function(t,e,n){var s,o,r,a,l,c,h=0,u=!1,d=!1,f=!0;if("function"!=typeof t)throw new TypeError(i);function w(e){var i=s,n=o;return s=o=void 0,h=e,a=t.apply(n,i)}function b(t){var i=t-c;return void 0===c||i>=e||i<0||d&&t-h>=r}function _(){var t=v();if(b(t))return C(t);l=setTimeout(_,function(t){var i=e-(t-c);return d?m(i,r-(t-h)):i}(t))}function C(t){return l=void 0,f&&s?w(t):(s=o=void 0,a)}function x(){var t=v(),i=b(t);if(s=arguments,o=this,c=t,i){if(void 0===l)return function(t){return h=t,l=setTimeout(_,e),u?w(t):a}(c);if(d)return l=setTimeout(_,e),w(c)}return void 0===l&&(l=setTimeout(_,e)),a}return e=y(e)||0,g(n)&&(u=!!n.leading,r=(d="maxWait"in n)?p(y(n.maxWait)||0,e):r,f="trailing"in n?!!n.trailing:f),x.cancel=function(){void 0!==l&&clearTimeout(l),h=0,s=c=o=l=void 0},x.flush=function(){return void 0===l?a:C(v())},x}}).call(this,i("yLpj"))},"93I4":function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},A5Xg:function(t,e,i){var n=i("NsO/"),s=i("ar/p").f,o={}.toString,r="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return r&&"[object Window]"==o.call(t)?function(t){try{return s(t)}catch(t){return r.slice()}}(t):s(n(t))}},AUvm:function(t,e,i){"use strict";var n=i("5T2Y"),s=i("B+OT"),o=i("jmDH"),r=i("Y7ZC"),a=i("kTiW"),l=i("6/1s").KEY,c=i("KUxP"),h=i("29s/"),u=i("RfKB"),d=i("YqAc"),f=i("UWiX"),p=i("zLkG"),m=i("Zxgi"),v=i("R+7+"),g=i("kAMH"),y=i("5K7Z"),w=i("93I4"),b=i("NsO/"),_=i("G8Mo"),C=i("rr1i"),x=i("oVml"),k=i("A5Xg"),S=i("vwuL"),$=i("2faE"),O=i("w6GO"),E=S.f,A=$.f,P=k.f,T=n.Symbol,I=n.JSON,L=I&&I.stringify,j=f("_hidden"),z=f("toPrimitive"),M={}.propertyIsEnumerable,D=h("symbol-registry"),F=h("symbols"),B=h("op-symbols"),H=Object.prototype,R="function"==typeof T,N=n.QObject,V=!N||!N.prototype||!N.prototype.findChild,W=o&&c(function(){return 7!=x(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=E(H,e);n&&delete H[e],A(t,e,i),n&&t!==H&&A(H,e,n)}:A,U=function(t){var e=F[t]=x(T.prototype);return e._k=t,e},Q=R&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},Y=function(t,e,i){return t===H&&Y(B,e,i),y(t),e=_(e,!0),y(i),s(F,e)?(i.enumerable?(s(t,j)&&t[j][e]&&(t[j][e]=!1),i=x(i,{enumerable:C(0,!1)})):(s(t,j)||A(t,j,C(1,{})),t[j][e]=!0),W(t,e,i)):A(t,e,i)},q=function(t,e){y(t);for(var i,n=v(e=b(e)),s=0,o=n.length;o>s;)Y(t,i=n[s++],e[i]);return t},J=function(t){var e=M.call(this,t=_(t,!0));return!(this===H&&s(F,t)&&!s(B,t))&&(!(e||!s(this,t)||!s(F,t)||s(this,j)&&this[j][t])||e)},G=function(t,e){if(t=b(t),e=_(e,!0),t!==H||!s(F,e)||s(B,e)){var i=E(t,e);return!i||!s(F,e)||s(t,j)&&t[j][e]||(i.enumerable=!0),i}},K=function(t){for(var e,i=P(b(t)),n=[],o=0;i.length>o;)s(F,e=i[o++])||e==j||e==l||n.push(e);return n},Z=function(t){for(var e,i=t===H,n=P(i?B:b(t)),o=[],r=0;n.length>r;)!s(F,e=n[r++])||i&&!s(H,e)||o.push(F[e]);return o};R||(a((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(i){this===H&&e.call(B,i),s(this,j)&&s(this[j],t)&&(this[j][t]=!1),W(this,t,C(1,i))};return o&&V&&W(H,t,{configurable:!0,set:e}),U(t)}).prototype,"toString",function(){return this._k}),S.f=G,$.f=Y,i("ar/p").f=k.f=K,i("NV0k").f=J,i("mqlF").f=Z,o&&!i("uOPS")&&a(H,"propertyIsEnumerable",J,!0),p.f=function(t){return U(f(t))}),r(r.G+r.W+r.F*!R,{Symbol:T});for(var X="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;X.length>tt;)f(X[tt++]);for(var et=O(f.store),it=0;et.length>it;)m(et[it++]);r(r.S+r.F*!R,"Symbol",{for:function(t){return s(D,t+="")?D[t]:D[t]=T(t)},keyFor:function(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),r(r.S+r.F*!R,"Object",{create:function(t,e){return void 0===e?x(t):q(x(t),e)},defineProperty:Y,defineProperties:q,getOwnPropertyDescriptor:G,getOwnPropertyNames:K,getOwnPropertySymbols:Z}),I&&r(r.S+r.F*(!R||c(function(){var t=T();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],s=1;arguments.length>s;)n.push(arguments[s++]);if(i=e=n[1],(w(e)||void 0!==t)&&!Q(t))return g(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!Q(e))return e}),n[1]=e,L.apply(I,n)}}),T.prototype[z]||i("NegM")(T.prototype,z,T.prototype.valueOf),u(T,"Symbol"),u(Math,"Math",!0),u(n.JSON,"JSON",!0)},ApPD:function(t,e,i){var n=i("JB68"),s=i("U+KD");i("zn7N")("getPrototypeOf",function(){return function(t){return s(n(t))}})},AyUB:function(t,e,i){t.exports={default:i("3GJH"),__esModule:!0}},"B+OT":function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},D8kY:function(t,e,i){var n=i("Ojgd"),s=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?s(t+e,0):o(t,e)}},EJiy:function(t,e,i){"use strict";e.__esModule=!0;var n=r(i("F+2o")),s=r(i("+JPL")),o="function"==typeof s.default&&"symbol"==typeof n.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};function r(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof s.default&&"symbol"===o(n.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":o(t)}},EnHN:function(t,e,i){i("zn7N")("getOwnPropertyNames",function(){return i("A5Xg").f})},"F+2o":function(t,e,i){t.exports={default:i("2Nb0"),__esModule:!0}},FYw3:function(t,e,i){"use strict";e.__esModule=!0;var n,s=i("EJiy"),o=(n=s)&&n.__esModule?n:{default:n};e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},FlQf:function(t,e,i){"use strict";var n=i("ccE7")(!0);i("MPFp")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},FpHa:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},G8Mo:function(t,e,i){var n=i("93I4");t.exports=function(t,e){if(!n(t))return t;var i,s;if(e&&"function"==typeof(i=t.toString)&&!n(s=i.call(t)))return s;if("function"==typeof(i=t.valueOf)&&!n(s=i.call(t)))return s;if(!e&&"function"==typeof(i=t.toString)&&!n(s=i.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},GQeE:function(t,e,i){t.exports={default:i("iq4v"),__esModule:!0}},Hfiw:function(t,e,i){var n=i("Y7ZC");n(n.S,"Object",{setPrototypeOf:i("6tYh").set})},Hsns:function(t,e,i){var n=i("93I4"),s=i("5T2Y").document,o=n(s)&&n(s.createElement);t.exports=function(t){return o?s.createElement(t):{}}},JB68:function(t,e,i){var n=i("Jes0");t.exports=function(t){return Object(n(t))}},JO7F:function(t,e,i){t.exports={default:i("/eQG"),__esModule:!0}},JbBM:function(t,e,i){i("Hfiw"),t.exports=i("WEpk").Object.setPrototypeOf},Jes0:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},KUxP:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},L4mV:function(t,e){!function(t,e){var i=function(t,i){this.namespace="navigation",this.defaults={data:{sticky:{className:"h-navigation_sticky",startAfterNode:{enabled:!1,selector:""},animations:{enabled:!1,currentInAnimationClass:"",currentOutAnimationClass:"",allInAnimationsClasses:"",allOutAnimationsClasses:"",duration:0},zIndex:9999,responsiveWidth:!0,center:!0,useShrink:!0,toBottom:!1,useNativeSticky:!1,always:!1},overlap:!1,overlapIsActive:!1}},e.apply(this,arguments),this.computeOverlapPaddingDelayed=jQuery.debounce(this.computeOverlapPadding.bind(this),10),this.start()};i.prototype={start:function(){var t={};this.opts.data&&(t=this.opts.data),t.sticky&&this.startSticky(t.sticky),t.overlap&&this.startOverlap()},scriptCallIsValid:function(){if(!e.isCustomizerPreview())return!0;var i=t(this.$element).closest(".h-navigation_outer").get(0);return!i||!!i.__vue__},startOverlap:function(){var e=this.$element.closest("[data-colibri-navigation-overlap]");0===e.length&&(e=this.$element),this.overlapTarget=e.get(0),this.overlapIsActive=!0,t(window).bind("resize.overlap orientationchange.overlap",this.computeOverlapPaddingDelayed),window.addResizeListener(this.overlapTarget,this.computeOverlapPaddingDelayed),this.computeOverlapPadding()},stopOverlap:function(){this.overlapIsActive=!1,this.$sheet&&(document.head.removeChild(this.$sheet),this.$sheet=null),t(window).off(".overlap"),window.removeResizeListener(this.overlapTarget,this.computeOverlapPaddingDelayed)},computeOverlapPadding:function(){if(this.overlapIsActive){this.$sheet||(this.$sheet=document.createElement("style"),document.head.appendChild(this.$sheet));var t=this.overlapTarget.offsetHeight+"px !important;";this.$sheet.innerHTML=".h-navigation-padding{padding-top:"+t+"}"}},startSticky:function(i){var n=this;this.$element.data("stickData",i),this.$element.fixTo("body",i),e.isCustomizerPreview()||this.prepareSticky(),this.$element.bind("fixto-added.sticky",function(){n.$element.attr("data-in-sticky-state",!0)}),this.$element.bind("fixto-add.sticky",function(){n.$element.closest(".h-navigation_outer").css("min-height",n.$element[0].offsetHeight)}),this.$element.bind("fixto-removed.sticky",function(){n.$element.removeAttr("data-in-sticky-state"),n.resetParentHeight()}),t(window).bind("resize.sticky orientationchange.sticky",function(){setTimeout(n.resizeCallback.bind(n),50)}),t(window).trigger("resize.sticky")},stopSticky:function(){var e=this.fixToInstance();e&&(e.destroy(),t(window).off(".sticky"),this.$element.removeData("fixto-instance"),this.resetParentHeight())},resetParentHeight:function(){var t=this.$element.closest(".h-navigation_outer"),e=1e3*parseFloat(this.$element.css("animation-duration"));t.css("animation-duration",0),setTimeout(function(){t.css("min-height",""),t.css("animation-duration","")},e+50)},stop:function(){this.stopSticky(),this.stopOverlap()},prepareSticky:function(){var e=this;this.normal=this.$element.find("[data-nav-normal]"),this.sticky=this.$element.find("[data-nav-sticky]"),this.sticky.find("span[data-placeholder]").each(function(){t(this).parent().attr("data-placeholder",t(this).attr("data-placeholder")),t(this).remove()}),this.sticky.length&&this.sticky.children().length&&(this.$element.bind("fixto-added.sticky",function(){e.moveElementsToSticky()}),this.$element.bind("fixto-removed.sticky",function(){e.moveElementsToNormal()}))},moveElementsToSticky:function(){var e=this;this.sticky.find("[data-placeholder]").each(function(i,n){$this=t(this);var s=$this.attr("data-placeholder"),o=e.normal.find("[data-placeholder-provider="+s+"] .h-column__content >"),r=$this;r&&o.length&&t(r).append(o)}),this.normal.hide(),this.sticky.show()},moveElementsToNormal:function(){var e=this;this.sticky.find("[data-placeholder]").each(function(i,n){$this=t(this);var s=$this.attr("data-placeholder"),o=e.sticky.find("[data-placeholder="+s+"] >"),r=e.normal.find("[data-placeholder-provider="+s+"] .h-column__content");r&&o.length&&t(r).append(o)}),this.normal.show(),this.sticky.hide()},fixToInstance:function(){var t=this.$element.data();return!(!t||!t.fixtoInstance)&&t.fixtoInstance},resizeCallback:function(){if(window.innerWidth<1024){var t=(e=this.$element.data()).stickData;if(!t)return;if(!(i=e.fixtoInstance))return!0;window.innerWidth<=767?t.stickyOnMobile||i.stop():t.stickyOnTablet||i.stop()}else{var e,i;if(!(e=this.$element.data()))return;if(!(i=e.fixtoInstance))return!0;i.refresh(),i.start()}}},i.inherits(e),e.navigation=i,e.Plugin.create("navigation"),e.Plugin.autoload("navigation")}(jQuery,Colibri)},LPBr:function(t,e){!function(t,e){var i=function(t,i){this.namespace="search",this.defaults={},e.apply(this,arguments),this.start()};i.prototype={start:function(){"showLightBox"===this.$element.attr("light-box")&&this.$element.find(".colibri_search_button").click({element:this.$element},this.showLightBox.bind(this))},showLightBox:function(e){var i=e.data.element,n=this.opts?this.opts.styleClass:null,s=void 0;t.fancybox.open(t(i).html(),{baseClass:"colibri_logo_fancybox",beforeLoad:function(){(s=t(".fancybox-container")).addClass(n)},afterClose:function(){s&&s.removeClass(n)}})}},i.inherits(e),e.search=i,e.Plugin.create("search"),e.Plugin.autoload("search")}(jQuery,Colibri)},Ljcc:function(t,e){!function(t,e){var i=function(t,i){this.namespace="light-box",this.defaults={lightboxMedia:null},e.apply(this,arguments),this.start()};i.prototype={start:function(){var t=this.opts&&this.opts.lightboxMedia?this.opts.lightboxMedia:null;this.$element.click({element:this.$element,mediaType:t},this.open)},open:function(e){e.preventDefault(),e.stopImmediatePropagation();var i=e.data.element,n=e.data.mediaType;t.fancybox.open({type:n,src:i.attr("href")})}},i.inherits(e),e["light-box"]=i,e.Plugin.create("light-box"),e.Plugin.autoload("light-box")}(jQuery,Colibri)},M1xp:function(t,e,i){var n=i("a0xu");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},MPFp:function(t,e,i){"use strict";var n=i("uOPS"),s=i("Y7ZC"),o=i("kTiW"),r=i("NegM"),a=i("B+OT"),l=i("SBuE"),c=i("j2DC"),h=i("RfKB"),u=i("U+KD"),d=i("UWiX")("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,i,m,v,g,y){c(i,e,m);var w,b,_,C=function(t){if(!f&&t in $)return $[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},x=e+" Iterator",k="values"==v,S=!1,$=t.prototype,O=$[d]||$["@@iterator"]||v&&$[v],E=!f&&O||C(v),A=v?k?C("entries"):E:void 0,P="Array"==e&&$.entries||O;if(P&&(_=u(P.call(new t)))!==Object.prototype&&_.next&&(h(_,x,!0),n||a(_,d)||r(_,d,p)),k&&O&&"values"!==O.name&&(S=!0,E=function(){return O.call(this)}),n&&!y||!f&&!S&&$[d]||r($,d,E),l[e]=E,l[x]=p,v)if(w={values:k?E:C("values"),keys:g?E:C("keys"),entries:A},y)for(b in w)b in $||o($,b,w[b]);else s(s.P+s.F*(f||S),e,w);return w}},Mqbl:function(t,e,i){var n=i("JB68"),s=i("w6GO");i("zn7N")("keys",function(){return function(t){return s(n(t))}})},MvwC:function(t,e,i){var n=i("5T2Y").document;t.exports=n&&n.documentElement},NV0k:function(t,e){e.f={}.propertyIsEnumerable},NegM:function(t,e,i){var n=i("2faE"),s=i("rr1i");t.exports=i("jmDH")?function(t,e,i){return n.f(t,e,s(1,i))}:function(t,e,i){return t[e]=i,t}},"NsO/":function(t,e,i){var n=i("M1xp"),s=i("Jes0");t.exports=function(t){return n(s(t))}},Ojgd:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},OyzN:function(t,e,i){t.exports={default:i("5biZ"),__esModule:!0}},PDs5:function(t,e){!function(t,e){var i='',n=function(t,i){this.namespace="dropdown-menu",this.defaults={menuSelector:".colibri-menu",offCanvasWrapper:".colibri-menu-container",arrowSelector:"svg.svg-inline--fa",linkSelector:".menu-item-has-children > a, .page_item_has_children > a",menuLinkSelector:" > .menu-item-has-children > a, > .page_item_has_children > a",subMenuLinkSelector:" ul .menu-item-has-children > a, ul .page_item_has_children > a",$menu:null},e.apply(this,arguments),this.start()};n.prototype={start:function(){var e=this,i=this.$element.find(this.opts.menuSelector).first();this.opts.$menu=i,this.stop(),this.addListener(),this.addFocusListener(),this.addSvgArrows(),this.addReverseMenuLogic(),this.addTabletMenuLogic(),t(document).ready(function(){e.addMenuScrollSpy(i)})},stop:function(){this.removeAllSvgArrows(),this.removeListeners()},copyLiEventTaA:function(e){var i="";(e.target&&e.target.tagName&&(i=e.target.tagName),"a"!==i.toLowerCase())&&t(e.target).find("> a")[0].click()},addListener:function(){this.opts.$menu.find("li").on("click",this.copyLiEventTaA)},toggleFocus:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.opts.$menu[0]!==t;)"li"===t.tagName.toLowerCase()&&(e?t.classList.add("hover"):t.classList.remove("hover")),t=t.parentElement},addFocusListener:function(){var t=this,e=this.opts.$menu.find("a");e.on("focus",function(e){t.toggleFocus(e.currentTarget)}),e.on("blur",function(e){t.toggleFocus(e.currentTarget,!1)})},addSvgArrows:function(){switch(this.opts.data&&this.opts.data.type?this.opts.data.type:null){case"horizontal":this.addHorizontalMenuSvgArrows();break;case"vertical":this.addVerticalMenuSvgArrow()}},addHorizontalMenuSvgArrows:function(){var e=this.opts.$menu,n=this.opts.arrowSelector,s=this.opts.menuLinkSelector,o=this.opts.subMenuLinkSelector;e.find(s).each(function(){0===t(this).children(n).length&&t(this).append('')}),e.find(o).each(function(){0===t(this).children(n).length&&t(this).append(i)})},addVerticalMenuSvgArrow:function(){var e=this.opts.$menu,n=this.opts.arrowSelector,s=this.opts.linkSelector;e.find(s).each(function(){0===t(this).children(n).length&&t(this).append(i)})},removeAllSvgArrows:function(){this.opts.$menu&&this.opts.$menu.find(this.opts.arrowSelector).remove()},removeListeners:function(){var t=this.opts.$menu;t.off("mouseover.navigation"),t.find("li").off("click",this.copyLiEventTaA),this.removeTabletLogic()},removeTabletLogic:function(){this.opts.$menu.off("tap.navigation")},addReverseMenuLogic:function(){var e=this.opts.$menu,i=this;e.on("mouseover.navigation","li",function(){e.find("li.hover").removeClass("hover"),i.setOpenReverseClass(e,t(this))})},setOpenReverseClass:function(t,e){if(this.getItemLevel(t,e)>0){var i=e.children("ul"),n=i.length&&e.offset().left+e.width()+300>window.innerWidth,s=i.length&&e.closest(".open-reverse").length;n||s?i.addClass("open-reverse"):i.length&&i.removeClass("open-reverse")}},getItemLevel:function(t,e){var i=this.opts.menuSelector;return e.parentsUntil(i).filter("li").length},addTabletMenuLogic:function(){var t=this.opts.$menu;this.opts.clickOnLink||(this.opts.clickOnLink=this.clickOnLink.bind(this)),this.opts.clickOnArrow||(this.opts.clickOnArrow=this.clickOnArrow.bind(this)),t.off("tap.navigation",this.opts.clickOnArrow),t.on("tap.navigation","li.menu-item > a svg",this.opts.clickOnArrow),t.off("tap.navigation",this.opts.clickOnLink),t.on("tap.navigation","li.menu-item > a",this.opts.clickOnLink)},clickOnLink:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t(e.target),s=n.closest("li"),o=n.closest("a"),r=this.opts.$menu;if(s.children("ul").length)if(this.isSelectedItem(s)){var a=o.attr("href");if(0===a.indexOf("#")){var l=a.replace("#","").trim();if(!l||!t("#"+l).length)return}e.stopPropagation(),i&&e.preventDefault(),this.deselectItems(r,s)}else e.stopPropagation(),e.preventDefault(),this.selectItem(r,s);else e.stopPropagation(),(i||!i&&this.isSelectedItem(s))&&e.preventDefault(),this.deselectItems(r,s)},clickOnArrow:function(t){this.clickOnLink(t,!0)},selectItem:function(e,i){this.deselectItems(e,i),i.attr("data-selected-item",!0),this.clearMenuHovers(e,i),i.addClass("hover"),this.setOpenReverseClass(e,i);var n=this;t("body").on("tap.navigation-clear-selection","*",function(){var t=jQuery(this);n.clearSelectionWhenTapOutside(t,e)}),t(window).on("scroll.navigation-clear-selection",function(){var t=jQuery(this);n.clearSelectionWhenTapOutside(t,e)})},deselectItems:function(e,i){i.removeClass("hover"),e.find("[data-selected-item]").each(function(){t(this).removeAttr("data-selected-item");var i=e.children("ul");e.is(".mobile-menu")&&i.slideDown()})},isSelectedItem:function(t){return t.is("[data-selected-item]")},clearMenuHovers:function(e,i){var n=this;e.find("li.hover").each(function(){i&&n.containsSelectedItem(t(this))||t(this).removeClass("hover")})},containsSelectedItem:function(t){return t.find("[data-selected-item]").length>0||t.is("[data-selected-item]")},clearSelectionWhenTapOutside:function(e,i){t("body").off("tap.navigation-clear-selection"),t(window).off("scroll.navigation-clear-selection"),e.is(i)||t.contains(i[0],this)||this.clearMenuHovers(i)},addMenuScrollSpy:function(e){var i=e;t.fn.scrollSpy&&i.find("a").scrollSpy({onChange:function(){i.find(".current-menu-item,.current_page_item").removeClass("current-menu-item current_page_item"),t(this).closest("li").addClass("current-menu-item current_page_item")},onLeave:function(){t(this).closest("li").removeClass("current-menu-item current_page_item")},smoothScrollAnchor:!0,offset:function(){var t=i.closest(".h-navigation_sticky");return t.length?t[0].getBoundingClientRect().height:0}}),t(window).trigger("smoothscroll.update")}},n.inherits(e),e["dropdown-menu"]=n,e.Plugin.create("dropdown-menu"),e.Plugin.autoload("dropdown-menu")}(jQuery,Colibri)},"R+7+":function(t,e,i){var n=i("w6GO"),s=i("mqlF"),o=i("NV0k");t.exports=function(t){var e=n(t),i=s.f;if(i)for(var r,a=i(t),l=o.f,c=0;a.length>c;)l.call(t,r=a[c++])&&e.push(r);return e}},R0q9:function(t,e){var i;(i=jQuery)(function(){i("#page-top [h-use-smooth-scroll-all] a, #page-top a[h-use-smooth-scroll]").smoothScrollAnchor()})},"RU/L":function(t,e,i){i("Rqdy");var n=i("WEpk").Object;t.exports=function(t,e,i){return n.defineProperty(t,e,i)}},RfKB:function(t,e,i){var n=i("2faE").f,s=i("B+OT"),o=i("UWiX")("toStringTag");t.exports=function(t,e,i){t&&!s(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},Rqdy:function(t,e,i){var n=i("Y7ZC");n(n.S+n.F*!i("jmDH"),"Object",{defineProperty:i("2faE").f})},SBuE:function(t,e){t.exports={}},SEkw:function(t,e,i){t.exports={default:i("RU/L"),__esModule:!0}},SzAf:function(t,e,i){},T1qB:function(t,e,i){(function(t){!function(t){var e=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),i=function(t){var i={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e&&(i[Symbol.iterator]=function(){return i}),i},n=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},s=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set}catch(t){return!1}})()||function(){var s=function(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var e=typeof t;if("undefined"===e);else if("string"===e)""!==t&&this._fromString(t);else if(t instanceof s){var i=this;t.forEach(function(t,e){i.append(e,t)})}else{if(null===t||"object"!==e)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var n=0;ne[0]?1:0}),t._entries&&(t._entries={});for(var i=0;i1?s(n[1]):"")}})}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(t){var e,i,n;if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||(e=t.URL,n=(i=function(e,i){"string"!=typeof e&&(e=String(e));var n,s=document;if(i&&(void 0===t.location||i!==t.location.href)){(n=(s=document.implementation.createHTMLDocument("")).createElement("base")).href=i,s.head.appendChild(n);try{if(0!==n.href.indexOf(i))throw new Error(n.href)}catch(t){throw new Error("URL unable to set base "+i+" due to "+t)}}var o=s.createElement("a");if(o.href=e,n&&(s.body.appendChild(o),o.href=o.href),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var r=new t.URLSearchParams(this.search),a=!0,l=!0,c=this;["append","delete","set"].forEach(function(t){var e=r[t];r[t]=function(){e.apply(r,arguments),a&&(l=!1,c.search=r.toString(),l=!0)}}),Object.defineProperty(this,"searchParams",{value:r,enumerable:!0});var h=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==h&&(h=this.search,l&&(a=!1,this.searchParams._fromString(this.search),a=!0))}})}).prototype,["hash","host","hostname","port","protocol"].forEach(function(t){!function(t){Object.defineProperty(n,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)}),Object.defineProperty(n,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(n,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),i.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},i.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=i),void 0!==t.location&&!("origin"in t.location)){var s=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:s,enumerable:!0})}catch(e){setInterval(function(){t.location.origin=s()},100)}}}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,i("yLpj"))},"U+KD":function(t,e,i){var n=i("B+OT"),s=i("JB68"),o=i("VVlx")("IE_PROTO"),r=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=s(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?r:null}},U96T:function(t,e){!function(t,e){var i=function(t,i){this.namespace="fancy-title",this.defaults={typeAnimationDurationIn:.1,typeAnimationDurationOut:.1,animationDuration:1},e.apply(this,arguments),this.start()};i.prototype={start:function(){if("type"!==this.opts.typeAnimation)jQuery(this.$element).animatedHeadline({animationType:this.opts.typeAnimation,animationDelay:1e3*this.opts.animationDuration});else if(!this.isIE()){jQuery(this.$element).attr("fancy-id");var t=this.opts.rotatingWords.split("\n");t.unshift(this.opts.word);var e={strings:t,typeSpeed:1e3*this.opts.typeAnimationDurationIn,backSpeed:1e3*this.opts.typeAnimationDurationOut,contentType:"html",smartBackspace:!1,loop:!0};this.$element.empty();new Typed(this.$element[0],e)}},isIE:function(){var t=navigator.userAgent;return t.indexOf("MSIE ")>-1||t.indexOf("Trident/")>-1}},i.inherits(e),e["fancy-title"]=i,e.Plugin.create("fancy-title"),e.Plugin.autoload("fancy-title")}(jQuery,Colibri)},UO39:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},UWiX:function(t,e,i){var n=i("29s/")("wks"),s=i("YqAc"),o=i("5T2Y").Symbol,r="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=r&&o[t]||(r?o:s)("Symbol."+t))}).store=n},V7oC:function(t,e,i){"use strict";e.__esModule=!0;var n,s=i("SEkw"),o=(n=s)&&n.__esModule?n:{default:n};e.default=function(){function t(t,e){for(var i=0;ih;)if((a=l[h++])!=a)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}}},WEpk:function(t,e){var i=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=i)},XsRr:function(t,e){!function(t,e,i){"use strict";var n;n=function(i,n){var s,o,r,a,l,c;return l=0,c=0,o=0,r={},a=[],0,(s=function(t,e){for(o in this.options={speed:1,boost:0},e)this.options[o]=e[o];(this.options.speed<0||this.options.speed>1)&&(this.options.speed=1),t||(t="paraxify"),this.photos=t,r=this.options,a=[this.photos],this._init(this)}).prototype={update:function(){for(c=e.innerHeight,o=0;oe&&l=c?t?"":void 0:(o=a.charCodeAt(l))<55296||o>56319||l+1===c||(r=a.charCodeAt(l+1))<56320||r>57343?t?a.charAt(l):o:t?a.slice(l,l+2):r-56320+(o-55296<<10)+65536}}},dl0q:function(t,e,i){i("Zxgi")("observable")},eUtF:function(t,e,i){t.exports=!i("jmDH")&&!i("KUxP")(function(){return 7!=Object.defineProperty(i("Hsns")("div"),"a",{get:function(){return 7}}).a})},eaoh:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},fpC5:function(t,e,i){var n=i("2faE"),s=i("5K7Z"),o=i("w6GO");t.exports=i("jmDH")?Object.defineProperties:function(t,e){s(t);for(var i,r=o(e),a=r.length,l=0;a>l;)n.f(t,i=r[l++],e[i]);return t}},"gDS+":function(t,e,i){t.exports={default:i("oh+g"),__esModule:!0}},"h//7":function(t,e,i){t.exports=function(){var t,e=jQuery;if("undefined"==typeof jQuery)throw new Error("Colibri requires jQuery");return function(t){var e=t.fn.jquery.split(".");if(1===e[0]&&e[1]<8)throw new Error("Colibri requires at least jQuery v1.8")}(jQuery),Function.prototype.inherits=function(t){var e=function(){};e.prototype=t.prototype;var i=new e;for(var n in this.prototype)i[n]=this.prototype[n];this.prototype=i,this.prototype.super=t.prototype},(t=function(i,n){n="object"==typeof n?n:{},this.$element=e(i);var s=this.$element.data("colibri-id"),o=t.getData(s);this.instance=s;var r=this.$element.data();this.opts=e.extend(!0,{},this.defaults,e.fn["colibri."+this.namespace].options,r,o,n),this.$target="string"==typeof this.opts.target?e(this.opts.target):null}).getData=function(t){return window.colibriData&&window.colibriData[t]?window.colibriData[t]:{}},t.isCustomizerPreview=function(){return!!window.colibriCustomizerPreviewData},t.prototype={updateOpts:function(i){var n=this.instance,s=e.extend(!0,{},this.defaults,t.getData(n)),o=i||{};this.opts=e.extend(!0,this.opts,s,o)},getInstance:function(){return this.$element.data("fn."+this.namespace)},hasTarget:function(){return!(null===this.$target)},callback:function(t){var i=[].slice.call(arguments).splice(1);return this.$element&&(i=this._fireCallback(e._data(this.$element[0],"events"),t,this.namespace,i)),this.$target&&(i=this._fireCallback(e._data(this.$target[0],"events"),t,this.namespace,i)),this.opts&&this.opts.callbacks&&e.isFunction(this.opts.callbacks[t])?this.opts.callbacks[t].apply(this,i):i},_fireCallback:function(t,e,i,n){if(t&&void 0!==t[e])for(var s=t[e].length,o=0;o1?null:this.completeCallback;this.complete("AnimationEnd",e.proxy(this.makeComplete,this),t)},makeSimpleEffects:function(){"show"===this.effect?this.removeHideClass():"hide"===this.effect&&this.revertHideClasses(),"function"==typeof this.completeCallback&&this.completeCallback(this)},makeComplete:function(){this.$element.hasClass(this.queue[0])&&(this.clean(),this.queue.shift(),this.queue.length&&this.animate())},complete:function(t,i,n){var s=t.split(" ").map(function(t){return t.toLowerCase()+" webkit"+t+" o"+t+" MS"+t});this.$element.one(s.join(" "),e.proxy(function(){"function"==typeof i&&i(),this.isHideableEffect()&&this.revertHideClasses(),this.isSlideEffect()&&this.removeElementHeight(),"function"==typeof n&&n(this),this.$element.off(event)},this))},clean:function(){this.$element.removeClass("colibri-animated").removeClass(this.queue[0])}},t.Animation.inherits(t)}(t),function(e){e.fn["colibri.animation"]=function(i,n){var s="fn.animation";return this.each(function(){var o=e(this);o.data(s),o.data(s,{}),o.data(s,new t.Animation(this,i,n))})},e.fn["colibri.animation"].options={},t.animate=function(t,e,i){return t["colibri.animation"](e,i),t}}(jQuery),function(t){t.Detect=function(){},t.Detect.prototype={isMobile:function(){return/(iPhone|iPod|BlackBerry|Android)/.test(navigator.userAgent)},isDesktop:function(){return!/(iPhone|iPod|iPad|BlackBerry|Android)/.test(navigator.userAgent)},isMobileScreen:function(){return e(window).width()<=768},isTabletScreen:function(){return e(window).width()>=768&&e(window).width()<=1024},isDesktopScreen:function(){return e(window).width()>1024}}}(t),function(t){t.Utils=function(){},t.Utils.prototype={disableBodyScroll:function(){var t=e("html"),i=window.innerWidth;if(!i){var n=document.documentElement.getBoundingClientRect();i=n.right-Math.abs(n.left)}var s=document.body.clientWidthdocument.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[o[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(a.prototype=n(t),i=new a,a.prototype=null,i[r]=t):i=l(),void 0===e?i:s(i,e)}},oYYQ:function(t,e){!function(t){function e(t){this.init(t)}e.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",constructor:e,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(e){t.extend(this,e),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw()},initWidget:function(){var e=this.canvas=this.canvas||t("").prependTo(this.el)[0];e.width=this.size,e.height=this.size,this.ctx=e.getContext("2d")},initFill:function(){var e,i=this,n=this.fill,s=this.ctx,o=this.size;if(!n)throw Error("The fill is not specified!");if(n.color&&(this.arcFill=n.color),n.gradient){var r=n.gradient;if(1==r.length)this.arcFill=r[0];else if(r.length>1){for(var a=n.gradientAngle||0,l=n.gradientDirection||[o/2*(1-Math.cos(a)),o/2*(1+Math.sin(a)),o/2*(1+Math.cos(a)),o/2*(1-Math.sin(a))],c=s.createLinearGradient.apply(s,l),h=0;h")[0];n.width=i.size,n.height=i.size,n.getContext("2d").drawImage(e,0,0,o,o),i.arcFill=i.ctx.createPattern(n,"no-repeat"),i.drawFrame(i.lastFrameValue)}},draw:function(){this.animation?this.drawAnimated(this.value):this.drawFrame(this.value)},drawFrame:function(t){this.lastFrameValue=t,this.ctx.clearRect(0,0,this.size,this.size),this.drawEmptyArc(t),this.drawArc(t)},drawArc:function(t){var e=this.ctx,i=this.radius,n=this.getThickness(),s=this.startAngle;e.save(),e.beginPath(),this.reverse?e.arc(i,i,i-n/2,s-2*Math.PI*t,s):e.arc(i,i,i-n/2,s,s+2*Math.PI*t),e.lineWidth=n,e.lineCap=this.lineCap,e.strokeStyle=this.arcFill,e.stroke(),e.restore()},drawEmptyArc:function(t){var e=this.ctx,i=this.radius,n=this.getThickness(),s=this.startAngle;t<1&&(e.save(),e.beginPath(),t<=0?e.arc(i,i,i-n/2,0,2*Math.PI):this.reverse?e.arc(i,i,i-n/2,s,s-2*Math.PI*t):e.arc(i,i,i-n/2,s+2*Math.PI*t,s),e.lineWidth=n,e.strokeStyle=this.emptyFill,e.stroke(),e.restore())},drawAnimated:function(e){var i=this,n=this.el,s=t(this.canvas);s.stop(!0,!1),n.trigger("circle-animation-start"),s.css({animationProgress:0}).animate({animationProgress:1},t.extend({},this.animation,{step:function(t){var s=i.animationStartValue*(1-t)+e*t;i.drawFrame(s),n.trigger("circle-animation-progress",[t,s])}})).promise().always(function(){n.trigger("circle-animation-end")})},getThickness:function(){return t.isNumeric(this.thickness)?this.thickness:this.size/14},getValue:function(){return this.value},setValue:function(t){this.animation&&(this.animationStartValue=this.lastFrameValue),this.value=t,this.draw()}},t.circleProgress={defaults:e.prototype},t.easing.circleProgressEasing=function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},t.fn.circleProgress=function(i,n){var s="circle-progress",o=this.data(s);if("widget"==i){if(!o)throw Error('Calling "widget" method on not initialized instance is forbidden');return o.canvas}if("value"==i){if(!o)throw Error('Calling "value" method on not initialized instance is forbidden');if(void 0===n)return o.getValue();var r=arguments[1];return this.each(function(){t(this).data(s).setValue(r)})}return this.each(function(){var n=t(this),o=n.data(s),r=t.isPlainObject(i)?i:{};if(o)o.init(r);else{var a=t.extend({},n.data());"string"==typeof a.fill&&(a.fill=JSON.parse(a.fill)),"string"==typeof a.animation&&(a.animation=JSON.parse(a.animation)),(r=t.extend(a,r)).el=n,o=new e(r),n.data(s,o)}})}}(jQuery)},"oh+g":function(t,e,i){var n=i("WEpk"),s=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return s.stringify.apply(s,arguments)}},p80q:function(t,e){!function(t,e){var i=function(t,i){this.namespace="scrollto",this.defaults={data:{arrowSelector:"",scrollTargetSelector:""}},e.apply(this,arguments),this.start()};i.prototype={start:function(){if(this.opts.data&&this.opts.data.arrowSelector&&this.opts.data.scrollTargetSelector){this.$arrow=this.$element.find(this.opts.data.arrowSelector);var e=t(this.opts.data.scrollTargetSelector);this.$arrow.smoothScrollAnchor({target:e})}},stop:function(){this.$arrow&&this.$arrow.off("click.smooth-scroll tap.smooth-scroll")},restart:function(){this.stop(),this.start()}},i.inherits(e),e.scrollto=i,e.Plugin.create("scrollto"),e.Plugin.autoload("scrollto")}(jQuery,Colibri)},qhMa:function(t,e){!function(t,e){var i="slideshow-gallery",n=function(t,n){this.namespace=i,this.defaults={},e.apply(this,arguments),this.opts.data=this.opts.data?this.opts.data:{},this.start()};n.prototype={start:function(){var e=this.$element.find(".slideshow-inner"),i=this.$element.find(".slideshow-thumbnails");if(e.find(" > .slideshow-item:gt(0)").hide(),i.length){var n=this.opts.data.margin,s=i,o=this.opts.data.itemsDesktop,r=this.opts.data.itemsTablet,a=this.opts.data.itemsMobile;this.opts.owl=s,s.owlCarousel({responsiveClass:!1,responsive:{0:{items:a},768:{items:r},1024:{items:o}},margin:n,loop:!1,rewind:!1,autoplay:!1,autoplayTimeout:3e3,nav:!0,dots:!1,mouseDrag:!0,touchDrag:!0,animateOut:!1,animateIn:!1,onInitialized:function(e){var n=t(".owl-carousel .owl-item").width();i.find(" .owl-item .slideshow-thumbnail").css("padding-top",.5625*n+"px")},onResized:function(e){var n=t(".owl-carousel .owl-item").width();i.find(" .owl-item .slideshow-thumbnail").css("padding-top",.5625*n+"px")},onTranslate:function(t){var i=t.item.index;e.find(" > .slideshow-item:visible").fadeOut(1e3),e.find(" > .slideshow-item").eq(i).fadeIn(1e3)}}),i.find(" .owl-item .slideshow-thumbnail").on("click",function(){e.find(" > .slideshow-item:visible").fadeOut(1e3),e.find(" > .slideshow-item").eq(t(this).data("index")).fadeIn(1e3)})}},stop:function(){var t=this.opts.owl;if(t)try{t.owlCarousel("destroy"),t.owlCarousel({touchDrag:!1,mouseDrag:!1})}catch(t){}},restart:function(){this.stop(),this.start()}},n.inherits(e),e[i]=n,e.Plugin.create(i),e.Plugin.autoload(i)}(jQuery,Colibri)},rr1i:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},s3Ml:function(t,e,i){t.exports={default:i("JbBM"),__esModule:!0}},tEej:function(t,e,i){var n=i("Ojgd"),s=Math.min;t.exports=function(t){return t>0?s(n(t),9007199254740991):0}},tfYw:function(t,e,i){"use strict";e.__esModule=!0;var n=o(i("Yz+Y")),s=o(i("JO7F"));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function t(e,i,o){null===e&&(e=Function.prototype);var r=(0,s.default)(e,i);if(void 0===r){var a=(0,n.default)(e);return null===a?void 0:t(a,i,o)}if("value"in r)return r.value;var l=r.get;return void 0!==l?l.call(o):void 0}},uFbj:function(t,e){!function(t,e,i){ /*! Computed Style - v0.1.0 - 2012-07-19 * https://github.com/bbarakaci/computed-style * Copyright (c) 2012 Burak Barakaci; Licensed MIT */ var n=function(){var t={getAll:function(t){return i.defaultView.getComputedStyle(t)},get:function(t,e){return this.getAll(t)[e]},toFloat:function(t){return parseFloat(t,10)||0},getFloat:function(t,e){return this.toFloat(this.get(t,e))},_getAllCurrentStyle:function(t){return t.currentStyle}};return i.documentElement.currentStyle&&(t.getAll=t._getAllCurrentStyle),t}(),s=function(){function e(t){this.element=t,this.replacer=i.createElement("div"),this.replacer.style.visibility="hidden",this.hide(),t.parentNode.insertBefore(this.replacer,t)}return e.prototype={replace:function(){var t=this.replacer.style,e=n.getAll(this.element);t.width=this._width(),t.height=this._height(),t.marginTop=e.marginTop,t.marginBottom=e.marginBottom,t.marginLeft=e.marginLeft,t.marginRight=e.marginRight,t.cssFloat=e.cssFloat,t.styleFloat=e.styleFloat,t.position=e.position,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.display=e.display},hide:function(){this.replacer.style.display="none"},_width:function(){return this.element.getBoundingClientRect().width+"px"},_widthOffset:function(){return this.element.offsetWidth+"px"},_height:function(){return jQuery(this.element).outerHeight()+"px"},_heightOffset:function(){return this.element.offsetHeight+"px"},destroy:function(){for(var e in t(this.replacer).remove(),this)this.hasOwnProperty(e)&&(this[e]=null)}},i.documentElement.getBoundingClientRect().width||(e.prototype._width=e.prototype._widthOffset,e.prototype._height=e.prototype._heightOffset),{MimicNode:e,computedStyle:n}}();function o(){this._vendor=null}o.prototype={_vendors:{webkit:{cssPrefix:"-webkit-",jsPrefix:"Webkit"},moz:{cssPrefix:"-moz-",jsPrefix:"Moz"},ms:{cssPrefix:"-ms-",jsPrefix:"ms"},opera:{cssPrefix:"-o-",jsPrefix:"O"}},_prefixJsProperty:function(t,e){return t.jsPrefix+e[0].toUpperCase()+e.substr(1)},_prefixValue:function(t,e){return t.cssPrefix+e},_valueSupported:function(t,e,i){try{return i.style[t]=e,i.style[t]===e}catch(t){return!1}},propertySupported:function(t){return void 0!==i.documentElement.style[t]},getJsProperty:function(t){if(this.propertySupported(t))return t;if(this._vendor)return this._prefixJsProperty(this._vendor,t);var e;for(var i in this._vendors)if(e=this._prefixJsProperty(this._vendors[i],t),this.propertySupported(e))return this._vendor=this._vendors[i],e;return null},getCssValue:function(t,e){var n,s=i.createElement("div"),o=this.getJsProperty(t);if(this._valueSupported(o,e,s))return e;if(this._vendor&&(n=this._prefixValue(this._vendor,e),this._valueSupported(o,n,s)))return n;for(var r in this._vendors)if(n=this._prefixValue(this._vendors[r],e),this._valueSupported(o,n,s))return this._vendor=this._vendors[r],n;return null}};var r,a=new o,l=a.getJsProperty("transform");var c,h=a.getCssValue("position","sticky"),u=a.getCssValue("position","fixed");function d(e,i,n){this.child=e,this._$child=t(e),this.parent=i,this.options={className:"fixto-fixed",startAfterNode:{enabled:!1,selector:""},animations:{enabled:!1,currentInAnimationClass:"",currentOutAnimationClass:"",allInAnimationsClasses:"",allOutAnimationsClasses:"",duration:0},top:0,zIndex:""},this._setOptions(n),this._initAnimations()}function f(t,e,i){d.call(this,t,e,i),this._replacer=new s.MimicNode(t),this._ghostNode=this._replacer.replacer,this._saveStyles(),this._saveViewportHeight(),this._proxied_onscroll=this._bind(this._onscroll,this),this._proxied_onresize=this._bind(this._onresize,this),this.start()}function p(t,e,i){d.call(this,t,e,i),this.start()}"Microsoft Internet Explorer"===navigator.appName&&(c=parseFloat(navigator.appVersion.split("MSIE")[1])),d.prototype={_mindtop:function(){var t=0;if(this._$mind)for(var e,i,s=0,o=this._$mind.length;s0){var e=this._afterElementOffsetTop,i=t.outerHeight();return this._scrollTop>e+i}return!0},stop:function(){this._stop(),this._running=!1},start:function(){this._running||(this._start(),this._running=!0)},destroy:function(){for(var t in this.stop(),this._destroy(),this._$child.removeData("fixto-instance"),this)this.hasOwnProperty(t)&&(this[t]=null)},_setOptions:function(e){t.extend(!0,this.options,e),this.options.mind&&(this._$mind=t(this.options.mind)),this.options.startAfterNode.enabled&&this.options.startAfterNode.selector&&(this._$startAfterNode=t(this.options.startAfterNode.selector))},setOptions:function(t){this._setOptions(t),this.refresh()},_stop:function(){},_start:function(){},_destroy:function(){},refresh:function(){}},f.prototype=new d,t.extend(f.prototype,{_bind:function(t,e){return function(){return t.call(e)}},_toresize:8===c?i.documentElement:e,_scriptCallIsValid:function(e){if(!Colibri.isCustomizerPreview())return!0;var i=t(e).closest(".h-navigation_outer").get(0);return!i||!!i.__vue__},_onscroll:function(){if(this._scrollTop=i.documentElement.scrollTop||i.body.scrollTop,this._parentBottom=this.parent.offsetHeight+this._fullOffset("offsetTop",this.parent),!this.options.startAfterNode||this._passedStartAfterNode())if(this.fixed){if(this.options.toBottom){if(this._scrollTop>=this._fullOffset("offsetTop",this._ghostNode))return void this._unfixFromScrollListener()}else if(this._scrollTop>this._parentBottom||this._scrollTop<=this._fullOffset("offsetTop",this._ghostNode)-this.options.top-this._mindtop())return void this._unfixFromScrollListener();this._adjust()}else{var t=n.getAll(this.child);(this._scrollTopthis._fullOffset("offsetTop",this.child)-this.options.top-this._mindtop()&&this._viewportHeight>this.child.offsetHeight+n.toFloat(t.marginTop)+n.toFloat(t.marginBottom)||this.options.toBottom)&&(this._fix(),this._adjust())}else this.fixed&&!this._inOutAnimation&&this._unfixFromScrollListener()},_adjust:function(){var e=0,i=this._mindtop(),s=0,o=n.getAll(this.child),a=null;if(r&&(a=this._getContext())&&(e=Math.abs(a.getBoundingClientRect().top)),(s=this._parentBottom-this._scrollTop-(this.child.offsetHeight+n.toFloat(o.marginBottom)+i+this.options.top))>0&&(s=0),this.options.toBottom);else{var l=this.options.top;0===l&&(l=t("body").offset().top),this.child.style.top=Math.round(s+i+e+l-n.toFloat(o.marginTop))+"px"}},_fullOffset:function(t,e,i){for(var n=e[t],s=e.offsetParent;null!==s&&s!==i;)n+=s[t],s=s.offsetParent;return n},_getContext:function(){for(var t,e=this.child,s=null;!s;){if((t=e.parentNode)===i.documentElement)return null;if("none"!==n.getAll(t)[l]){s=t;break}e=t}return s},_fix:function(){var e=this.child,s=e.style,o=n.getAll(e),a=e.getBoundingClientRect().left,l=o.width;if(this._$child.trigger("fixto-add"),this._saveStyles(),i.documentElement.currentStyle&&(l=e.offsetWidth,"border-box"!==o.boxSizing&&(l-=n.toFloat(o.paddingLeft)+n.toFloat(o.paddingRight)+n.toFloat(o.borderLeftWidth)+n.toFloat(o.borderRightWidth)),l+="px"),r){this._getContext();a=this._$child.offset().left}if(this._replacer.replace(),s.left=a-n.toFloat(o.marginLeft)+"px",s.width=l,s.position="fixed",this.options.toBottom)s.top="",s.bottom=this.options.top+n.toFloat(o.marginBottom)+"px";else{s.bottom="";var c=this.options.top;0===c&&(c=t("body").offset().top),s.top=this._mindtop()+c-n.toFloat(o.marginTop)+"px"}this.options.zIndex&&(this.child.style.zIndex=this.options.zIndex),this._$child.addClass(this.options.className);var h=this.options.animations;this._$child.removeClass(h.allInAnimationsClasses),h.enabled&&(this._$child.addClass(h.currentInAnimationClass),this._inInAnimation||(this._inInAnimation=!0,this._animationInDebounce())),this.fixed=!0,this._$child.trigger("fixto-added")},_unfixFromScrollListener:function(){this._$child.trigger("fixto-unnfix-from-scroll"),this.options.animations.enabled?this._unfixTriggerAnimation():this._unfix()},_getAfterElementOffsetTop:function(){var t=this._$startAfterNode;if(t&&t.length>0){var e=t.get(0),i=0;do{i+=e.offsetTop,e=e.offsetParent}while(e);return i=i<0?0:i}return 0},_unfix:function(){this._replacer.hide();var t=this.child.style;t.position=this._childOriginalPosition,t.top=this._childOriginalTop,t.bottom=this._childOriginalBottom,t.width=this._childOriginalWidth,t.left=this._childOriginalLeft,t.zIndex=this._childOriginalZIndex,this.options.always||(this._$child.removeClass(this.options.className),this._$child.trigger("fixto-removed")),this.fixed=!1},_unfixTriggerAnimation:function(){this._$child.trigger("fixto-animated-remove"),this._animationInDebounce.flush();var t=this.options.animations;this._$child.removeClass(t.allInAnimationsClasses),this._$child.removeClass(t.allOutAnimationsClasses),t.enabled&&this._$child.addClass(t.currentOutAnimationClass),this._inOutAnimation=!0,this._animationOutDebounce()},_saveStyles:function(){this._animationOutDebounce.flush();var t=this.child.style;this._childOriginalPosition=t.position,this.options.toBottom?(this._childOriginalTop="",this._childOriginalBottom=t.bottom):(this._childOriginalTop=t.top,this._childOriginalBottom=""),this._childOriginalWidth=t.width,this._childOriginalLeft=t.left,this._childOriginalZIndex=t.zIndex,this._afterElementOffsetTop=this._getAfterElementOffsetTop()},_onresize:function(){this.refresh()},_saveViewportHeight:function(){this._viewportHeight=e.innerHeight||i.documentElement.clientHeight},_stop:function(){this._unfix(),t(e).unbind("scroll.fixto mousewheel",this._proxied_onscroll),t(this._toresize).unbind("resize.fixto",this._proxied_onresize)},_start:function(){this._onscroll(),t(e).bind("scroll.fixto mousewheel",this._proxied_onscroll),t(this._toresize).bind("resize.fixto",this._proxied_onresize)},_destroy:function(){this._replacer.destroy()},refresh:function(){this._saveViewportHeight(),this._unfix(),this._onscroll()}}),p.prototype=new d,t.extend(p.prototype,{_start:function(){var t=n.getAll(this.child);this._childOriginalPosition=t.position,this._childOriginalTop=t.top,this.child.style.position=h,this.refresh()},_stop:function(){this.child.style.position=this._childOriginalPosition,this.child.style.top=this._childOriginalTop},refresh:function(){this.child.style.top=this._mindtop()+this.options.top+"px"}});var m=function(t,e,n){return h&&!n||h&&n&&!1!==n.useNativeSticky?new p(t,e,n):u?(void 0===r&&(s=!1,o=i.createElement("div"),a=i.createElement("div"),o.appendChild(a),o.style[l]="translate(0)",o.style.marginTop="10px",o.style.visibility="hidden",a.style.position="fixed",a.style.top=0,i.body.appendChild(o),a.getBoundingClientRect().top>0&&(s=!0),i.body.removeChild(o),r=s),new f(t,e,n)):"Neither fixed nor sticky positioning supported";var s,o,a};c<8&&(m=function(){return"not supported"}),t.fn.fixTo=function(e,i){var n=t(e),s=0;return this.each(function(){var o=t(this).data("fixto-instance");o?o[e].call(o,i):t(this).data("fixto-instance",m(this,n[s],i));s++})}}(window.jQuery,window,document)},uOPS:function(t,e){t.exports=!0},ucIs:function(t,e){},v5Dd:function(t,e,i){var n=i("NsO/"),s=i("vwuL").f;i("zn7N")("getOwnPropertyDescriptor",function(){return function(t,e){return s(n(t),e)}})},vYqb:function(t,e){!function(t,e){var i=function(t,i){this.namespace="link",this.defaults={href:"",target:"_self"},e.apply(this,arguments),this.start()};i.prototype={start:function(){var t=this;t.opts.href&&(this.$element.addClass("cursor-pointer"),this.$element.on("click",function(){window.open(t.opts.href,t.opts.target)}))},inside:function(){},outside:function(){}},i.inherits(e),e.link=i,e.Plugin.create("link"),e.Plugin.autoload("link")}(jQuery,Colibri)},vwuL:function(t,e,i){var n=i("NV0k"),s=i("rr1i"),o=i("NsO/"),r=i("G8Mo"),a=i("B+OT"),l=i("eUtF"),c=Object.getOwnPropertyDescriptor;e.f=i("jmDH")?c:function(t,e){if(t=o(t),e=r(e,!0),l)try{return c(t,e)}catch(t){}if(a(t,e))return s(!n.f.call(t,e),t[e])}},"w2d+":function(t,e,i){"use strict";var n=i("hDam"),s=i("UO39"),o=i("SBuE"),r=i("NsO/");t.exports=i("MPFp")(Array,"Array",function(t,e){this._t=r(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,s(1)):s(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},w6GO:function(t,e,i){var n=i("5vMV"),s=i("FpHa");t.exports=Object.keys||function(t){return n(t,s)}},wgeU:function(t,e){},x2nW:function(t,e){!function(t,e){var i=function(t,i){this.namespace="offcanvas",this.defaults={target:null,push:!0,width:"250px",direction:"left",toggleEvent:"click",clickOutside:!0,animationOpen:"slideInLeft",animationClose:"slideOutLeft",callbacks:["open","opened","close","closed"],offcanvasOverlayId:null,$overlayElement:null,targetId:null},e.apply(this,arguments),this.utils=new e.Utils,this.detect=new e.Detect,this.start()};i.prototype={start:function(){if(this.hasTarget()){var e=this.opts.offcanvasOverlayId,i=t("#"+e+".offscreen-overlay");this.opts.$overlayElement=i,this.buildTargetWidth(),this.buildAnimationDirection(),this.$close=this.getCloseLink(),this.$element.on(this.opts.toggleEvent+"."+this.namespace,t.proxy(this.toggle,this)),this.$target.addClass("offcanvas"),this.$target.trigger("colibri.offcanvas.ready"),this.moveOffcanvasToBody(),this.addOffcanvasOverlayLogic()}},stop:function(){this.closeAll(),this.removeOffcanvasElements(),this.$element.off("."+this.namespace),this.$close&&this.$close.off("."+this.namespace),t(document).off("."+this.namespace)},removeOffcanvasElements:function(){this.$target.remove(),this.opts.$overlayElement.remove()},moveOffcanvasToBody:function(){var t=this.$target[0];document.body.appendChild(t);var e=this.opts.$overlayElement[0];document.body.appendChild(e)},addOffcanvasOverlayLogic:function(){var t=this.opts.$overlayElement,e=this.$target;e.length&&(t.on("scroll touchmove mousewheel",function(t){return t.preventDefault(),t.stopPropagation(),!1}),e.on("colibri.offcanvas.open",function(){t.addClass("h-offcanvas-opened")}),e.on("colibri.offcanvas.close",function(){t.removeClass("h-offcanvas-opened")}))},toggle:function(t){this.isOpened()?this.close(t):this.open(t)},buildTargetWidth:function(){this.opts.width=t(window).width()0)})});return e.observe(this.get(0)),e});i("1cTi");var r=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.compareQuery,s=void 0!==n&&n,o=i.compareHash,r=void 0!==o&&o;if(!t||!e)return!0;var a=new URL(t),l=new URL(e),c=a.origin===l.origin&&a.pathname===l.pathname;return s&&(c=c&&a.search===l.search),r&&(c=c&&a.hash===l.hash),c};!function(t){function e(){return Colibri.isCustomizerPreview()}"#page-top"===window.location.hash&&o("",5);var i={items:{},eachCategory:function(t){for(var e in this.items)this.items.hasOwnProperty(e)&&t(this.items[e])},addItem:function(t,e){this.items[t]||(this.items[t]=[]),this.items[t].push(e)},all:function(){var t=[];for(var e in this.items)this.items.hasOwnProperty(e)&&(t=t.concat(this.items[e]));return t}},n=!1;function s(e){var i=isNaN(parseFloat(e.options.offset))?e.options.offset.call(e.target):e.options.offset;return e.target.offset().top-i-t("body").offset().top}function o(t,e){t===location.hash.replace("#","")||"page-top"===t&&""===location.hash.replace("#","")||setTimeout(function(){t=t?"page-top"===t?" ":"#"+t:" ",history&&history.replaceState&&history.replaceState({},"",t)},e||100)}function a(e){if(!n){n=!0;var i=s(e);t("html, body").animate({scrollTop:i},{easing:"linear",complete:function(){var i=s(e);t("html, body").animate({scrollTop:i},{easing:"linear",duration:100,complete:function(){n=!1,o(e.id,5)}})}})}}function l(e){var i=(e.attr("href")||"").split("#").pop(),n=function(t){var e=jQuery(t)[0].href||"",i="#";try{var n=new window.URL(e);i=[n.protocol,"//",n.host,n.pathname].join("")}catch(t){i=function(t){return t.split("?")[0].split("#")[0]}(e)}return i}(e),s=null,o=[location.protocol,"//",location.host,location.pathname].join("");if(n.length&&n!==o)return s;if(i.trim().length)try{s=t('[id="'+i+'"]')}catch(t){console.log("error scrollSpy",t)}return s&&s.length?s:null}function c(){i.eachCategory(function(t){var e=t.sort(function(t,e){return t.target.offset().top-e.target.offset().top}),i=e.filter(function(t){var e=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;return t.target.offset().top<=e+.25*window.innerHeight}).pop();e.forEach(function(t){i&&t.element.is(i.element)?(o(t.id,5),t.options.onChange.call(t.element)):t.options.onLeave.call(t.element)})})}function h(){var e=window.location.hash.replace("#",""),n=i.all().filter(function(t){return t.targetSel==='[id="'+decodeURIComponent(e).trim()+'"]'});t(window).on("load",function(){n.length&&a(n[0]),c()})}t.fn.smoothScrollAnchor=function(i){if(!e()){var n=t(this);i=jQuery.extend({offset:function(){var e=t(".h-navigation_sticky");return e.length?e[0].getBoundingClientRect().height:0}},i),n.each(function(){var e=t(this);if(i.target||r(document.location.href,this.href)){var n=i.target||l(e);if(n&&n.length){var s={element:e,options:i,target:n,targetSel:i.targetSel||'[id="'+n.attr("id").trim()+'"]',id:(n.attr("id")||"").trim()};e.off("click.smooth-scroll tap.smooth-scroll").on("click.smooth-scroll tap.smooth-scroll",function(e){t(this).data("skip-smooth-scroll")||t(e.target).data("skip-smooth-scroll")||(e.preventDefault(),t(this).data("allow-propagation")||e.stopPropagation(),a(s),s.options.clickCallback&&s.options.clickCallback.call(this,e))})}}})}},t.fn.scrollSpy=function(n){if(!e()){var s=t(this),o="spy-"+parseInt(Date.now()*Math.random());s.each(function(){var e=t(this),s=jQuery.extend({onChange:function(){},onLeave:function(){},clickCallback:function(){},smoothScrollAnchor:!1,offset:0},n);if(e.is("a")&&-1!==(e.attr("href")||"").indexOf("#")){var r=l(e);if(r){var a={element:e,options:s,target:r,targetSel:'[id="'+r.attr("id").trim()+'"]',id:r.attr("id").trim()};i.addItem(o,a),e.data("scrollSpy",a),n.smoothScrollAnchor&&e.smoothScrollAnchor(n)}}})}},e()||(t(window).scroll(c),t(window).bind("smoothscroll.update",c),t(window).bind("smoothscroll.update",h),t(h))}(jQuery);var a=i("EJiy"),l=i.n(a);!function(t,e){var i=function(t,i){this.namespace="accordion",this.defaults={target:null,toggle:!0,active:!1,toggleClass:"h-accordion-item-title",boxClass:"h-accordion-item-content",activeClass:"accordion-active h-custom-active-state",callbacks:["open","opened","close","closed"],hashes:[],currentHash:!1,currentItem:!1},e.apply(this,arguments),this.start()};i.prototype={start:function(){this.isPublishing()||("true"===this.$element.attr("data-toggle")?this.opts.toggle=!0:this.opts.toggle=!1,this.$items=this.getItems(),this.$items.each(t.proxy(this.loadItems,this)),this.$boxes=this.getBoxes(),this.setInitialOpenedItems(),this.setActiveItem())},stop:function(){this.closeAll()},isPublishing:function(){return"true"===this.$element.attr("data-is-preview")&&e.isCustomizerPreview()},restart:function(){this.stop(),this.start()},getItems:function(){return this.$element.find("> .h-accordion-item > ."+this.opts.toggleClass)},setInitialOpenedItems:function(){var e=this,i=!1;this.$items.each(function(n,s){"true"!==t(s).attr("data-open-by-default")||e.opts.toggle&&(!e.opts.toggle||i)||(i=!0,e.addActive(e.getItem(s)))})},getBoxes:function(){return this.$element.find("> .h-accordion-item > ."+this.opts.boxClass)},loadItems:function(e,i){var n=this,s=this.getItem(i);s.$el.attr("rel",s.hash),s.$el.hasClass(this.opts.activeClass)&&(this.opts.currentItem=s,this.opts.active=s.hash);var o=["click","tap"].map(function(t){return t+"."+n.namespace+" "}).join(" ");s.$el.off(o).on(o,t.proxy(this.toggle,this))},setActiveItem:function(){!1!==this.opts.active&&(this.opts.currentItem=this.getItemBy(this.opts.active),this.opts.active=this.opts.currentItem.hash),!1!==this.opts.currentItem&&(this.addActive(this.opts.currentItem),this.opts.currentItem.$box.removeClass("hide"))},addActive:function(t){t.$box.find(".h-element").trigger("colibriContainerOpened"),t.$box.removeClass("hide").addClass("open"),t.$el.addClass(this.opts.activeClass),!1!==t.$caret&&t.$caret.removeClass("down").addClass("up"),!1!==t.$parent&&t.$parent.addClass(this.opts.activeClass),this.opts.currentItem=t},removeActive:function(t){t.$box.removeClass("open"),t.$el.removeClass(this.opts.activeClass),!1!==t.$caret&&t.$caret.addClass("down").removeClass("up"),!1!==t.$parent&&t.$parent.removeClass(this.opts.activeClass),this.opts.currentItem=!1},toggle:function(e){e&&e.preventDefault();var i=t(e.target).closest("."+this.opts.toggleClass).get(0)||e.target,n=this.getItem(i);this.isOpened(n.hash)?this.close(n.hash):this.open(e)},openAll:function(){this.$items.addClass(this.opts.activeClass),this.$boxes.addClass("open").removeClass("hide")},open:function(e,i){if(void 0!==e){"object"===(void 0===e?"undefined":l()(e))&&e.preventDefault();var n=t(e.target).closest("."+this.opts.toggleClass).get(0)||e.target,s="object"===(void 0===e?"undefined":l()(e))?this.getItem(n):this.getItemBy(e);s.$box.hasClass("open")||(this.opts.toggle&&this.closeAll(),this.callback("open",s),this.addActive(s),this.onOpened())}},onOpened:function(){this.callback("opened",this.opts.currentItem)},closeAll:function(){this.$items.removeClass(this.opts.activeClass).closest("li").removeClass(this.opts.activeClass),this.$boxes.removeClass("open").addClass("hide")},close:function(t){var e=this.getItemBy(t);this.callback("close",e),this.opts.currentItem=e,this.onClosed()},onClosed:function(){var t=this.opts.currentItem;this.removeActive(t),this.callback("closed",t)},isOpened:function(e){return t(e).hasClass("open")},getItem:function(e){var i={};i.$el=t(e),i.hash=i.$el.attr("href"),i.$box=t(i.hash);var n=i.$el.parent();i.$parent="LI"===n[0].tagName&&n;var s=i.$el.find(".caret");return i.$caret=0!==s.length&&s,i},getItemBy:function(t){var e="number"==typeof t?this.$items.eq(t-1):this.$element.find('[rel="'+t+'"]');return this.getItem(e)}},i.inherits(e),e.accordion=i,e.Plugin.create("accordion"),e.Plugin.autoload("accordion")}(jQuery,Colibri);i("YICA"),i("+ejm");var c=i("Yz+Y"),h=i.n(c),u=i("iCc5"),d=i.n(u),f=i("V7oC"),p=i.n(f),m=i("FYw3"),v=i.n(m),g=i("mRg0"),y=i.n(g),w=i("h//7"),b=i.n(w),_=function(){function t(e,i){return d()(this,t),this.$=jQuery,this.namespace=this.constructor.componentName(),this.utils=new b.a.Utils,this.detect=new b.a.Detect,this.init(),b.a.apply(this,arguments),this.start(),this.isCustomizerPreview()&&this.wpCustomize(wp.customize),this}return p()(t,null,[{key:"componentName",value:function(){throw new TypeError("name getter should be implemented")}}]),p()(t,[{key:"init",value:function(){}},{key:"isCustomizerPreview",value:function(){return b.a.isCustomizerPreview()}},{key:"wpCustomize",value:function(t){}},{key:"wpSettingBind",value:function(t,e){window.wp.customize(t,function(t){t.bind(e)})}},{key:"updateData",value:function(t){this.opts=jQuery.extend({},this.opts,t),this.restart()}},{key:"restart",value:function(){}},{key:"start",value:function(){}}]),t}();b.a.registerPlugin=function(t,e,i){"function"==typeof t.componentName&&(i=e,t=(e=t).componentName()),b.a[t]=e,b.a.Plugin.create(t),!1!==i&&b.a.Plugin.autoload(t)};var C=/^(f|ht)tps?:\/\//i,x=function(t){function e(){return d()(this,e),v()(this,(e.__proto__||h()(e)).apply(this,arguments))}return y()(e,t),p()(e,[{key:"start",value:function(){this.addGAEvent()}},{key:"addGAEvent",value:function(){var t=this,e={eventCategory:this.$element.data().gaEvCategory,eventAction:this.$element.data().gaEvAction,eventLabel:this.$element.data().gaEvLabel};e.eventCategory&&e.eventAction&&e.eventLabel&&this.$element.on("click",function(i){var n=t.href,s=t.target;C.test(n)&&(i.preventDefault(),i.stopPropagation(),e.transport="beacon",e.hitCallback=function(){window.open(n,s)}),ga("send","event",e)})}}],[{key:"componentName",value:function(){return"button"}}]),e}(_);b.a.registerPlugin(x);i("zoCF");var k=function(){function t(e,i){d()(this,t),this.settings=i,this.element=e,this.isPlaying=!1,this.ready()}return p()(t,[{key:"ready",value:function(){}},{key:"play",value:function(){}},{key:"pause",value:function(){}},{key:"isPaused",value:function(){}},{key:"setVideo",value:function(t){t.className="colibri-video-background-item",this.element.innerHTML="",this.element.appendChild(t),this.addResizeBind()}},{key:"trigger",value:function(t){var e;"function"==typeof window.Event?e=new Event(t):(e=document.createEvent("Event")).initEvent(t,!0,!0),this.element.dispatchEvent(e)}},{key:"loaded",value:function(){this.trigger("video-bg-loaded")}},{key:"addResizeBind",value:function(){var t=this;this.trigger("video-bg-resize"),this.onResize(function(){t.trigger("video-bg-resize")})}},{key:"onLoad",value:function(t){jQuery(this.element).on("video-bg-loaded",t)}},{key:"onResize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;t=jQuery.debounce(t,e),jQuery(window).resize(t),jQuery(window).on("orientationchange",t)}}],[{key:"test",value:function(){return!1}}]),t}(),S=function(t){function e(){return d()(this,e),v()(this,(e.__proto__||h()(e)).apply(this,arguments))}return y()(e,t),p()(e,[{key:"isPaused",value:function(){return this.video.paused}},{key:"ready",value:function(){var t=this;if(this.settings.poster&&(this.element.style.backgroundImage='url("'+this.settings.poster+'")'),this.settings.videoUrl){var e=document.createElement("video");e.id=this.settings.id||"",e.loop="loop",e.muted="muted",this.settings.width&&(e.width=this.settings.width),this.settings.height&&(e.height=this.settings.height),e.addEventListener("play",function(){t.trigger("play")}),e.addEventListener("pause",function(){t.trigger("pause")}),e.addEventListener("loadeddata",function(){t.loaded()}),this.video=e,this.setVideo(e),e.src=this.settings.videoUrl}}},{key:"pause",value:function(){this.video.pause()}},{key:"stopVideo",value:function(){this.video.pause(),this.video.currentTime=0}},{key:"play",value:function(){this.video.play()}}],[{key:"test",value:function(t){return document.createElement("video").canPlayType(t.mimeType)}}]),e}(k),$=i("tfYw"),O=i.n($),E=/^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|&v(?:i)?=))([^#&?]*).*/,A={native:S,youtube:function(t){function e(t,i){var n;d()(this,e);var s=v()(this,(e.__proto__||h()(e)).call(this,t,i));return n=s,v()(s,n)}return y()(e,t),p()(e,[{key:"ready",value:function(){var t=this;if(this.settings.poster&&(this.element.style.backgroundImage='url("'+this.settings.poster+'")'),"YT"in window)window.YT.ready(function(){t.loadVideo()});else{var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api",e.onload=function(){window.YT.ready(function(){t.loadVideo()})},document.getElementsByTagName("head")[0].appendChild(e)}}},{key:"getVideoID",value:function(){var t=this.settings.videoUrl.match(E);return t&&t.length>=2?t[1]:null}},{key:"getYTOptions",value:function(){var t=this,e={videoId:this.getVideoID(),events:{onReady:function(e){var i=e.target;i.mute(),top.yt1=i,i.setPlaybackQuality("auto"),t.play(),t.loaded()},onStateChange:function(e){window.YT.PlayerState.PLAYING===e.data?t.trigger("play"):window.YT.PlayerState.PAUSED===e.data?t.trigger("pause"):window.YT.PlayerState.ENDED===e.data&&e.target.playVideo()},onError:function(e){t.player.getIframe().style.display="none"}},playerVars:{autoplay:1,controls:0,disablekb:1,fs:0,iv_load_policy:3,loop:1,modestbranding:1,playsinline:1,rel:0,showinfo:0,mute:1}};return this.settings.height?e.height=this.settings.height:e.height=1080,this.settings.width?e.width=this.settings.width:e.width=1920,e}},{key:"loadVideo",value:function(){var t=document.createElement("div");window.YT;this.setVideo(t),this.player=new window.YT.Player(t,this.getYTOptions())}},{key:"updateVideoSize",value:function(){if(this.player){var t=jQuery(this.player.getIframe()),e=this.calcVideosSize();t.css(e),t.addClass("ready")}}},{key:"calcVideosSize",value:function(){var t=jQuery(this.element).outerWidth(),e=jQuery(this.element).outerHeight(),i="16:9".split(":"),n=i[0]/i[1],s=t/e>n;return{width:1*(s?t:e*n),height:1*(s?t/n:e)}}},{key:"play",value:function(){this.player&&this.player.playVideo&&(this.isPlaying||(this.isPlaying=!0,this.player.playVideo()))}},{key:"stopVideo",value:function(){this.player&&this.player.stopVideo&&this.isPlaying&&(this.isPlaying=!1,this.player.stopVideo())}},{key:"pause",value:function(){this.player&&this.player.pauseVideo&&!this.isPlaying&&(this.isPlaying=!1,this.player.pauseVideo())}},{key:"isPaused",value:function(){return YT.PlayerState.PAUSED===this.player.getPlayerState()}},{key:"loaded",value:function(){this.updateVideoSize(),O()(e.prototype.__proto__||h()(e.prototype),"loaded",this).call(this)}},{key:"addResizeBind",value:function(){var t=this;this.onResize(function(){return t.updateVideoSize()},50),O()(e.prototype.__proto__||h()(e.prototype),"addResizeBind",this).call(this)}}],[{key:"test",value:function(t){return"video/x-youtube"===t.mimeType}}]),e}(k)},P=i("1Qhi"),T=function(t){function e(){return d()(this,e),v()(this,(e.__proto__||h()(e)).apply(this,arguments))}return y()(e,t),p()(e,[{key:"init",value:function(){this.videoData={},this.handler=!1,this.debouncedSetPosition=jQuery.debounce(this.updateVideoBackground.bind(this),100)}},{key:"generateVideo",value:function(){var t=this;for(var e in A)if(A.hasOwnProperty(e)&&A[e].test(this.videoData)){this.$element.empty(),this.handler=new A[e](this.$element[0],this.videoData);break}this.handler.onLoad(function(){t.$element.children("iframe,video").addClass("h-hide-sm-force"),t.debouncedSetPosition(),t.handler.onResize(function(){return t.debouncedSetPosition()})}),window.hop&&(window.addResizeListener(this.$element.closest(".background-wrapper").parent()[0],this.debouncedSetPosition),this.debouncedSetPosition())}},{key:"stopVideo",value:function(){this.handler.stopVideo&&this.handler.stopVideo()}},{key:"play",value:function(){this.handler.play&&this.handler.play()}},{key:"updateVideoBackground",value:function(){this.handler.updateVideoSize&&this.handler.updateVideoSize(),this.setPosition()}},{key:"setPosition",value:function(){var t=this;if(this.handler.pause(),"none"!==this.$element.children("iframe,video").eq(0).css("display")){var e=this.$element.children("iframe,video").eq(0),i=e.is("iframe")?50:this.opts.positionX,n=e.is("iframe")?50:this.opts.positionY,s=Math.max(e.width()-this.$element.width(),0)*parseFloat(i)/100,o=Math.max(e.height()-this.$element.height(),0)*parseFloat(n)/100;e.css({transform:"translate(-"+s+"px,-"+o+"px)","-webkit-transform":"translate(-"+s+"px,-"+o+"px)"}),this.$element.addClass("visible"),setTimeout(function(){t.handler.play()},100)}}},{key:"start",value:function(){this.videoData={mimeType:this.opts.mimeType,poster:this.opts.poster,videoUrl:this.opts.video},Object(P.isMobile)()||this.generateVideo()}},{key:"stop",value:function(){window.removeResizeListener(this.$element.closest(".background-wrapper").parent()[0],this.debouncedSetPosition)}},{key:"restart",value:function(){this.stop(),this.start()}}],[{key:"componentName",value:function(){return"video-background"}}]),e}(_);b.a.registerPlugin(T);i("SzAf");var I=function(t){function e(){return d()(this,e),v()(this,(e.__proto__||h()(e)).apply(this,arguments))}return y()(e,t),p()(e,[{key:"init",value:function(){var t=this;this.currentIndex=0,this.interval=-1,this.debouncedRestart=o()(function(){t.stop(),t.start()},500)}},{key:"addImageEffect",value:function(t,e){var i=this.opts.slideDuration,n=this.opts.slideSpeed,s=i-n;s<0&&(s=0),this.$(t).css({transition:"opacity "+n+"ms ease "+s+"ms",zIndex:this.$images.length-e})}},{key:"slideImage",value:function(){this.$images.eq(this.currentIndex).removeClass("current");var t=this.currentIndex+1===this.$images.length?0:this.currentIndex+1;this.$images.eq(t).addClass("current").removeClass("next"),this.currentIndex=t;var e=this.currentIndex+1===this.$images.length?0:this.currentIndex+1;this.$images.eq(e).addClass("next")}},{key:"restart",value:function(){this.debouncedRestart()}},{key:"start",value:function(){var t=this;this.$images=this.$element.find(".slideshow-image"),this.$images.removeClass("current"),this.$images.eq(0).addClass("current"),this.currentIndex=0,this.$images.each(function(e,i){t.addImageEffect(i,e)}),this.interval=setInterval(function(){t.slideImage()},parseInt(this.opts.slideDuration))}},{key:"stop",value:function(){clearInterval(this.interval),this.$images.css({transition:"",opacity:""}),this.$images.removeClass("current next"),this.$images.eq(0).addClass("current"),this.currentIndex=0}}],[{key:"componentName",value:function(){return"slideshow"}}]),e}(_);b.a.registerPlugin(I);i("XsRr");!function(t,e){var i=function(t,i){this.namespace="parallax",this.defaults={},e.apply(this,arguments),this.start()};i.prototype={start:function(){if(this.isEnabled=this.$element.attr("data-enabled"),this.isEnabled=void 0===this.isEnabled||"true"==this.isEnabled,this.isEnabled)if(this.isiOS())this.$element.addClass("paraxify--ios");else{this.$element[0]&&(this.paraxify=paraxify(this.$element[0]));var e=this;this.firstRestart=!1,this.restartScriptDebounce=t.debounce(function(){!1!==e.firstRestart?e.restart():e.firstRestart=!0},100),this._addEventListeners()}},stop:function(){this._removeEventListener(),this.paraxify&&(this.paraxify.destroy(),this.paraxify=null)},isiOS:function(){return(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream},restart:function(){this.stop(),this.start()},_addEventListeners:function(){window.addResizeListener(this.$element[0],this.restartScriptDebounce)},_removeEventListener:function(){window.removeResizeListener(this.$element[0],this.restartScriptDebounce)}},i.inherits(e),e.parallax=i,e.Plugin.create("parallax"),e.Plugin.autoload("parallax")}(jQuery,Colibri);i("vYqb"),i("R0q9"),i("hJJR"),i("ucIs"),i("63br"),i("oYYQ");var L=i("GQeE"),j=i.n(L);!function(t,e){var i="footer-parallax",n=function(n,s){var o=this;this.namespace=i,this.defaults={activeClasses:{header:"h-footer-parallax-header-class",content:"h-footer-parallax-content-class",footer:"h-footer-parallax",container:"new-stacking-context"},selectors:{header:" > .page-header,> .header",content:"> .page-content,> .content",container:"#page-top"}},this.bindedResizeListener=t.debounce(this.resizeListener.bind(this),100),e.apply(this,arguments),this.scriptStarted=!1,this.initMediaById(),this.start(),window.addResizeListener(this.$element.get(0),this.bindedResizeListener),setTimeout(function(){o.bindedResizeListener()},5e3)};n.prototype={start:function(){if(this.scriptStarted=!0,this.isEnabled=this.$element.attr("data-enabled"),this.isEnabled=void 0===this.isEnabled||"true"==this.isEnabled,"desktop"===this.getCurrentMedia()&&this.isEnabled){var e=this.opts.selectors,i=this.opts.activeClasses;this.$container=t(e.container),this.$content=this.$container.find(e.content).first(),this.$header=this.$container.find(e.header).first(),this.$container.addClass(i.container),this.$header.addClass(i.header),this.$content.addClass(i.content),this.$element.addClass(i.footer),this.updateSiblingStyle()}},stop:function(){this.scriptStarted=!1;var t=this.opts.activeClasses;this.$container&&(this.$container.removeClass(t.container),this.$header.removeClass(t.header),this.$content.removeClass(t.content),this.$element.removeClass(t.footer),this.$content.css("margin-bottom",""))},restart:function(){this.stop(),this.start()},resizeListener:function(){this.updateSiblingStyle(),"desktop"!==this.getCurrentMedia()?this.stop():this.isEnabled&&!this.footerParallaxStarted()&&this.start()},footerParallaxStarted:function(){return this.scriptStarted},initMediaById:function(){this.mediaById={desktop:{min:1024},tablet:{min:768,max:1023},mobile:{max:767}}},isDragging:function(){return!!document.querySelector("body.h-ui-dragging")},getCurrentMedia:function(){var t=this,e=window.innerWidth,i=null;return j()(this.mediaById).forEach(function(n){var s=t.mediaById[n];(!s.min||s.min&&e>=s.min)&&(!s.max||s.max&&e<=s.max)&&(i=n)}),i},updateSiblingStyle:function(){if(this.$content&&this.footerParallaxStarted()){var t=this.$element.outerHeight();this.$content.css("margin-bottom",t+"px")}}},n.inherits(e),e[i]=n,e.Plugin.create(i),e.Plugin.autoload(i)}(jQuery,Colibri);i("jWKC"),i("/ChV"),i("U96T"),i("4H15"),i("Ljcc");!function(t,e){var i="accordion-menu",n='',s='';n='
'+n+"
",s='
'+s+"
";var o=function(t,n){this.namespace=i,this.defaults={menuSelector:".colibri-menu",offCanvasWrapper:".colibri-menu-container",linkSelector:".menu-item-has-children > a, .page_item_has_children > a",linkLeafsSelector:"li:not(.menu-item-has-children):not(.page_item_has_children) > a",arrowSelector:[".menu-item-has-children > a > .arrow-wrapper, .page_item_has_children > a > .arrow-wrapper",".menu-item-has-children > a > svg, .page_item_has_children > a > svg"].join(","),linkSelectorInLink:"svg",$menu:null},e.apply(this,arguments),this.initBindedFunctions(),this.initEventListenersData(),this.start()};o.prototype={start:function(){var t=this.$element.find(this.opts.menuSelector).first();this.opts.$menu=t,this.addSvgArrows(),this.opts.$menu.find("a").data("allow-propagation",!0),this.removeEventListeners(),this.addEventListeners(),this.addFocusListener(),this.addMenuScrollSpy(t)},initBindedFunctions:function(){this.debounceApplyDropdownLogic=t.debounce(this.applyDropdownLogic.bind(this),10),this.bindedLinkEventHandler=this.linkEventHandler.bind(this),this.bindedLinkArrowEventHandler=this.linkArrowEventHandler.bind(this)},initEventListenersData:function(){var t=["click","tap"].map(function(t){return t+".accordion-menu"}),e=t.map(function(t){return t+".link-selector"}).join(" "),i=t.map(function(t){return t+".arrow-selector"}).join(" "),n=t.map(function(t){return t+".off-canvas"}).join(" ");this._eventOptions={menuNamespace:".accordion-menu",linkSelectorEvent:e,arrowSelectorEvent:i,offCanvasEvent:n}},toggleFocus:function(t){for(;this.opts.$menu[0]!==t;)"li"===t.tagName.toLowerCase()&&(-1!==t.className.indexOf("hover")?t.className=t.className.replace(" hover",""):t.className+=" hover"),t=t.parentElement},addFocusListener:function(){var t=this,e=this.opts.$menu.find("a");e.on("focus",function(e){t.toggleFocus(e.currentTarget)}),e.on("blur",function(e){t.toggleFocus(e.currentTarget,!1)})},addEventListeners:function(){var t=this.opts.$menu,e=this._eventOptions;t.on(e.arrowSelectorEvent,this.opts.arrowSelector,this.bindedLinkArrowEventHandler),window.wp&&window.wp.customize&&t.off(e.linkSelectorEvent,this.opts.linkSelector),t.on(e.linkSelectorEvent,this.opts.linkSelector,this.bindedLinkEventHandler),t.on(e.offCanvasEvent,this.opts.linkLeafsSelector,this.closeOffcanvasPanel)},removeEventListeners:function(){var t=this.opts.$menu,e=this._eventOptions;t.off(e.menuNamespace)},stop:function(){this.removeEventListeners(),this.removeAllSvgArrows()},openDropDown:function(e){e&&((e=t(e).is("a")?t(e).closest("li"):t(e)).addClass("open"),e.children("ul").slideDown(100))},closeDropDown:function(e){e&&((e=t(e).is("a")?t(e).closest("li"):t(e)).removeClass("open"),e.children("ul").slideUp(100))},isDropDownOpen:function(t){return t.is(".open")},closeOffcanvasPanel:function(){window.wp&&window.wp.customize||t(".offscreen-overlay").trigger("click")},linkEventHandler:function(e,i){var n=window.wp&&window.wp.customize;n&&e.preventDefault();var s=t(e.target).closest("li");i||!s.hasClass("open")||n?((i||!i&&!s.hasClass("open"))&&(e.preventDefault(),e.stopPropagation()),this.debounceApplyDropdownLogic(e,i)):this.closeOffcanvasPanel()},linkArrowEventHandler:function(t){this.linkEventHandler(t,!0)},applyDropdownLogic:function(e,i){var n=t(e.target).closest("li");n.hasClass("menu-item-has-children")||n.hasClass("page_item_has_children")?i&&this.isDropDownOpen(n)?this.closeDropDown(n):this.openDropDown(n):this.closeOffcanvasPanel()},addSvgArrows:function(){var e=this.opts.$menu,i=this.opts.linkSelectorInLink;e.find(this.opts.linkSelector).each(function(){var e=this;0===t(this).children(i).parent(".arrow-wrapper").length?(t(this).children(i).remove(),t(this).append(n),t(this).append(s)):0===t(this).children(i).length&&(t(this).append(n),t(this).append(s)),setTimeout(function(){t(e).find(".h-global-transition-disable").removeClass("h-global-transition-disable")},1e3)})},removeAllSvgArrows:function(){this.opts.$menu&&this.opts.$menu.find(this.opts.arrowSelector).remove()},addMenuScrollSpy:function(e){var i=e,n=this;if(t.fn.scrollSpy){var s=n.opts.linkSelector,o=n.opts.arrowSelector;i.find("a").not(s).not(o).scrollSpy({onChange:function(){i.find(".current-menu-item,.current_page_item").removeClass("current-menu-item current_page_item"),t(this).closest("li").addClass("current-menu-item current_page_item")},onLeave:function(){t(this).closest("li").removeClass("current-menu-item current_page_item")},clickCallback:function(){n.closeOffcanvasPanel()},smoothScrollAnchor:!0,offset:function(){var t=i.closest('[data-colibri-component="navigation"]');return t.length?t[0].getBoundingClientRect().height+20:20}})}t(window).trigger("smoothscroll.update")}},o.inherits(e),e[i]=o,e.Plugin.create(i),e.Plugin.autoload(i)}(jQuery,Colibri);i("PDs5"),i("x2nW");var z=i("OyzN"),M=i.n(z);jQuery(function(t){window.wp&&window.wp.customize&&window.wp.customize.selectiveRefresh.bind("render-partials-response",function(e){M()(e.contents).filter(function(t){return-1!==t.indexOf("nav_menu_instance[")}).length&&setTimeout(function(){t('[data-colibri-component="dropdown-menu"]').each(function(){t(this).data("fn.colibri.dropdownMenu").addMenuScrollSpy(t(this).find("ul").eq(0))})},100)})});i("L4mV"),i("uFbj"),i("p80q"),i("LPBr"),i("ycXy"),i("qhMa");!function(t,e){var i=function(t,i){this.namespace="slider",this.defaults={swiperSelector:".swiper-container",swiperOptions:{},slidesLinks:{},slideSelector:".swiper-slide"},e.apply(this,arguments),this.initData(),this.initMediaById(),this.start(),this.addResizeListener()};i.prototype={initData:function(){var e=this;this.$swiperElement=this.$element.find(this.opts.swiperSelector),this.swiperElement=this.$swiperElement.get(0);var i=this;this.bindedRestart=t.debounce(function(){i.restart()},50),this.bindedMouseEnter=function(){e.swiper.autoplay.stop()},this.bindedMouseLeave=function(){e.swiper.autoplay.start()}},start:function(){if(!e.isCustomizerPreview()){var t=this.swiperElement;if(t){var i=this.getSwiperOptions();this.swiperOptions=i,this.swiper=new Swiper(t,i),this.addSwiperEnhancements(),this.swiperUpdate(),this.removeSwiperHiddenClass()}}},stop:function(){this.removeSwiperStopOnHoverListeners(),this.swiper&&this.swiper.destroy&&this.swiper.destroy()},restart:function(){this.stop(),this.start()},initMediaById:function(){this.mediaById={desktop:{min:1024},tablet:{min:768,max:1023},mobile:{max:767}}},getSwiperOptions:function(){var e=this.getCurrentMedia(),i=this.opts.data&&this.opts.data.swiperOptions||{},n=(i=t.extend({},i,this.getExtraSwiperOptions())).media||{},s={};return"desktop"!==e&&(s=n[e]||{}),t.extend({},i,s)},changeSlidesVideosState:function(){var t=this.getActiveSlides();t.find("video").each(function(t,e){e.autoplay&&e.play()}),t.find(".colibri-video-background")["colibri.video-background"]("play");var e=this.getInactiveSlides();e.find("video").each(function(t,e){e.pause(),e.currentTime=0}),e.find(".colibri-video-background")["colibri.video-background"]("stopVideo")},getExtraSwiperOptions:function(){var t=this;return{on:{slideChangeTransitionEnd:function(){t.changeSlidesVideosState()},init:function(){setTimeout(function(){t.addScriptsToDummySlides()},1e3)}}}},addScriptsToDummySlides:function(){this.$element.find(".swiper-slide-duplicate").find("[data-colibri-component]").not("[data-disabled]").each(function(){var e=t(this),i="colibri."+e.data("colibri-component");e.attr("data-loaded",!0);try{e[i]()}catch(t){console.error(t)}})},getActiveSlides:function(){return this.$element.find(".swiper-slide-active")},getInactiveSlides:function(){return this.$element.find(".swiper-slide:not(.swiper-slide-active)")},getCurrentMedia:function(){var t=this,e=window.innerWidth,i=null;return j()(this.mediaById).forEach(function(n){var s=t.mediaById[n];(!s.min||s.min&&e>=s.min)&&(!s.max||s.max&&e<=s.max)&&(i=n)}),i},removeSwiperHiddenClass:function(){this.$element.find(this.opts.swiperSelector).removeClass("h-overflow-hidden")},addResizeListener:function(){e.isCustomizerPreview()||window.addResizeListener(this.swiperElement,this.bindedRestart)},removeResizeListener:function(){window.removeResizeListener(this.swiperElement,this.bindedRestart)},addSwiperEnhancements:function(){this.swiperOptions.pauseOnHover&&this.addSwiperStopOnHoverListeners()},removeSwiperStopOnHoverListeners:function(){this.$swiperElement.off("mouseenter",this.bindedMouseEnter),this.$swiperElement.off("mouseleave",this.bindedMouseLeave)},addSwiperStopOnHoverListeners:function(){this.$swiperElement.on("mouseenter",this.bindedMouseEnter),this.$swiperElement.on("mouseleave",this.bindedMouseLeave)},swiperUpdate:function(){this.swiper.update&&this.swiper.update(),this.swiper.navigation&&this.swiper.navigation.update(),this.swiper.pagination&&this.swiper.pagination.render(),this.swiper.pagination&&this.swiper.pagination.update()}},i.inherits(e),e.slider=i,e.Plugin.create("slider"),e.Plugin.autoload("slider")}(jQuery,Colibri),function(t,e){var i=function(t,i){var n=this;this.namespace="tabs",this.defaults={equals:!1,active:!1,hash:!0,contentActiveClass:"h-tabs-content-active",navActiveClass:"h-tabs-navigation-active-item h-custom-active-state",callbacks:["init","next","prev","open","opened","close","closed"]},e.apply(this,arguments),this.start(),window.addEventListener("hashchange",function(){n.onHashChange()},!1)};i.prototype={start:function(){this.tabsCollection=[],this.hashesCollection=[],this.currentHash=[],this.currentItem=!1,this.$items=this.getItems(),this.$items.length&&(this.$items.each(t.proxy(this.loadItems,this)),this.$tabs=this.getTabs(),this.currentHash=this.getLocationHash(),this.closeAll(),this.setActiveItem(),this.setItemHeight(),this.callback("init"))},getTabs:function(){return t(this.tabsCollection).map(function(){return this.toArray()})},elementIsVisible:function(t){for(var e=t.offsetTop,i=t.offsetHeight;t.offsetParent;)e+=(t=t.offsetParent).offsetTop;return ewindow.pageYOffset},tabsIsVisible:function(){return this.elementIsVisible(this.$element.get(0))},tabsTopIsVisible:function(){var t=this.$element.get(0).getBoundingClientRect();return this.tabsIsVisible()&&t.top>0},onHashChange:function(){this.closeAll(),this.currentHash=this.getLocationHash(),this.setActiveItem(),this.currentHash&&!this.tabsTopIsVisible()&&this.$element.get(0).scrollIntoView()},getItems:function(){var t=this.$element.find(" >.h-tabs-navigation .h-tabs-navigation-item");return 0===t.length?this.$element.find(".h-tabs-navigation .h-tabs-navigation-item"):t},loadItems:function(e,i){var n=this,s=this.getItem(i);s.$el.attr("rel",s.hash),this.collectItem(s),s.$el.hasClass(this.opts.navActiveClass)&&(this.currentItem=s,this.opts.active=s.hash);var o=["click","tap"].map(function(t){return t+"."+n.namespace+" "}).join(" ");s.$el.off(o).on(o,t.proxy(this.open,this))},collectItem:function(t){this.tabsCollection.push(t.$tab),this.hashesCollection.push(t.hash)},setActiveItem:function(){this.currentHash?(this.currentItem=this.getItemBy(this.currentHash),this.opts.active=this.currentHash):!1===this.opts.active&&(this.currentItem=this.getItem(this.$items.first()),this.opts.active=this.currentItem.hash),this.addActive(this.currentItem)},addActive:function(t){t.$tab.find(".h-element").trigger("colibriContainerOpened"),t.$el.addClass(this.opts.navActiveClass),t.$tab.removeClass("hide").addClass(this.opts.contentActiveClass),this.currentItem=t},removeActive:function(t){t.$el.removeClass(this.opts.navActiveClass),t.$tab.addClass("hide").removeClass(this.opts.contentActiveClass),this.currentItem=!1},next:function(t){t&&t.preventDefault();var e=this.getItem(this.fetchElement("next"));this.open(e.hash),this.callback("next",e)},prev:function(t){t&&t.preventDefault();var e=this.getItem(this.fetchElement("prev"));this.open(e.hash),this.callback("prev",e)},fetchElement:function(t){var e;if(!1!==this.currentItem){if(0===(e=this.currentItem.$parent[t]().find("a")).length)return}else e=this.$items[0];return e},open:function(t,e){if(void 0!==t){"object"===(void 0===t?"undefined":l()(t))&&t.preventDefault();var i="object"===(void 0===t?"undefined":l()(t))?this.getItem(t.target):this.getItemBy(t);this.closeAll(),this.callback("open",i),this.addActive(i),this.pushStateOpen(e,i),this.callback("opened",i)}},pushStateOpen:function(t,e){!1!==t&&!1!==this.opts.hash&&history.pushState(!1,!1,e.hash)},close:function(t){var e=this.getItemBy(t);e.$el.hasClass(this.opts.navActiveClass)&&(this.callback("close",e),this.removeActive(e),this.pushStateClose(),this.callback("closed",e))},pushStateClose:function(){!1!==this.opts.hash&&history.pushState(!1,!1," ")},closeAll:function(){this.$tabs.removeClass("open").addClass("hide").removeClass(this.opts.contentActiveClass),this.$items.removeClass(this.opts.navActiveClass)},getItem:function(e){var i={};return i.$el=t(e),i.$el.is("a")||(i.$el=i.$el.parents("a").eq(0)),i.hash=i.$el.attr("href"),i.$parent=i.$el.parent(),i.$tab=this.$element.find(i.hash),i},getItemBy:function(t){var e="number"==typeof t?this.$items.eq(t-1):this.$element.find('[rel="'+t+'"]');return this.getItem(e)},getLocationHash:function(){return!1!==this.opts.hash&&(!!this.isHash()&&top.location.hash)},isHash:function(){return!(""===top.location.hash||-1===t.inArray(top.location.hash,this.hashesCollection))},setItemHeight:function(){if(this.opts.equals){var t=this.getItemMaxHeight()+"px";this.$tabs.css("min-height",t)}},getItemMaxHeight:function(){var e=0;return this.$tabs.each(function(){var i=t(this).outerHeight();e=i>e?i:e}),e}},i.inherits(e),e.tabs=i,e.Plugin.create("tabs"),e.Plugin.autoload("tabs")}(jQuery,Colibri);var D=i("gDS+"),F=i.n(D);!function(t,e){var i=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d()(this,t),this.$element=e,this.data=i}return p()(t,[{key:"play",value:function(){}},{key:"stop",value:function(){}},{key:"pause",value:function(){}},{key:"startIfAutoplay",value:function(){this.data.autoplay&&this.play()}},{key:"getContentWindow",value:function(){var t=this.$element.find("iframe");if(!(t.length<1))return t.get(0).contentWindow}}]),t}(),n=function(t){function e(){return d()(this,e),v()(this,(e.__proto__||h()(e)).apply(this,arguments))}return y()(e,t),p()(e,[{key:"play",value:function(){this.runCommand("playVideo")}},{key:"stop",value:function(){this.runCommand("stopVideo")}},{key:"runCommand",value:function(t){var e=this.getContentWindow();if(e){var i=F()({event:"command",func:t});e.postMessage(i,"https://www.youtube.com")}}}]),e}(i),s=function(t){function e(){return d()(this,e),v()(this,(e.__proto__||h()(e)).apply(this,arguments))}return y()(e,t),p()(e,[{key:"play",value:function(){this.runCommand("play")}},{key:"stop",value:function(){this.runCommand("pause"),this.runCommand("setCurrentTime","0")}},{key:"runCommand",value:function(t,e){var i=this.getContentWindow();if(i){var n=F()({method:t,value:e});i.postMessage(n,"*")}}}]),e}(i),o=function(t){function e(t,i){d()(this,e);var n=v()(this,(e.__proto__||h()(e)).call(this,t,i));return n.video=n.$element.find("video").get(0),n}return y()(e,t),p()(e,[{key:"play",value:function(){this.video.play()}},{key:"stop",value:function(){this.video.pause(),this.video.currentTime=0}}]),e}(i),r=function(t,i){this.namespace="video",this.defaults={data:{}},e.apply(this,arguments),this.start()};r.prototype={start:function(){var t=this;switch((this.opts.data||{}).displayAs){case"posterImage":this.addPosterImageLogic();break;case"iconWithLightbox":this.addIconWithLightBoxLogic()}this.addVideoHandler();var e=!1;this.intersectionObserver=this.$element.respondToVisibility(function(i){i?e&&t.handler.startIfAutoplay():t.handler.stop(),e||(e=!0)})},stop:function(){this.intersectionObserver&&(this.intersectionObserver.unobserve(),this.intersectionObserver=null)},addVideoHandler:function(){"internal"===this.opts.data.videoType?this.handler=new o(this.$element,this.opts.data):"youtube"===this.opts.data.videoCategory?this.handler=new n(this.$element,this.opts.data):this.handler=new s(this.$element,this.opts.data)},addPosterImageLogic:function(){var t=this.opts.data;if(0!==this.$element.find(".video-poster").length){if(0!==this.$element.find(".video-poster a").length)this.$element.find(".video-poster a").removeAttr("href"),this.$element.click({element:this.$element,data:t},this.startVideo);0!==this.$element.find(".video-poster .h-icon").length&&this.$element.click({element:this.$element,data:t},this.startVideo)}},addIconWithLightBoxLogic:function(){var t=this.opts.data;0!==this.$element.find(".icon-with-lightbox")&&this.$element.find(".icon-with-lightbox .h-svg-icon").click({element:this.$element,data:t},this.startVideo)},startVideo:function(e){var i=e.data.element,n=e.data.data.lightBox;if(n||i.find(".video-poster").hide(),"external"===e.data.data.videoType){var s=i.find("iframe");if(n){var o=s.attr("src");o=(o=o.replace("autoplay=0","autoplay=1")).replace("autopause=0",""),t.fancybox.open({src:o,opts:{beforeClose:function(t,e){i.find(".video-poster").show()}}})}else this.handler.play()}else if(n){i.find(".ratio-inner");t.fancybox.open({src:i.find("video"),type:"inline",modal:!1,touch:!1,showCloseButton:!0,opts:{afterLoad:function(t,e){var i=e.$content.find("video");0!==i.length&&i.removeClass("h-video-main")},beforeClose:function(t,e){i.find(".video-poster").show()}}})}else this.handler.play()}},r.inherits(e),e.video=r,e.Plugin.create("video"),e.Plugin.autoload("video")}(jQuery,Colibri)},zLkG:function(t,e,i){e.f=i("UWiX")},zn7N:function(t,e,i){var n=i("Y7ZC"),s=i("WEpk"),o=i("KUxP");t.exports=function(t,e){var i=(s.Object||{})[t]||Object[t],r={};r[t]=e(i),n(n.S+n.F*o(function(){i(1)}),"Object",r)}},zoCF:function(t,e,i){}}); (function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global.Swiper=factory());}(this,(function(){'use strict';var doc=(typeof document==='undefined')?{body:{},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:'',},querySelector:function querySelector(){return null;},querySelectorAll:function querySelectorAll(){return[];},getElementById:function getElementById(){return null;},createEvent:function createEvent(){return{initEvent:function initEvent(){},};},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[];},};},location:{hash:''},}:document;var win=(typeof window==='undefined')?{document:doc,navigator:{userAgent:'',},location:{},history:{},CustomEvent:function CustomEvent(){return this;},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return'';},};},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},}:window;var Dom7=function Dom7(arr){var self=this;for(var i=0;i=0&&html.indexOf('>')>=0){var toCreate='div';if(html.indexOf(':~]/)){els=[doc.getElementById(selector.trim().split('#')[1])];}else{els=(context||doc).querySelectorAll(selector.trim());} for(i=0;i0&&selector[0].nodeType){for(i=0;i=0;k-=1){var handler=handlers[k];if(listener&&handler.listener===listener){el.removeEventListener(event,handler.proxyListener,capture);handlers.splice(k,1);}else if(!listener){el.removeEventListener(event,handler.proxyListener,capture);handlers.splice(k,1);}}}}} return this;} function trigger(){var this$1=this;var args=[],len=arguments.length;while(len--)args[len]=arguments[len];var events=args[0].split(' ');var eventData=args[1];for(var i=0;i0;});el.dispatchEvent(evt);el.dom7EventData=[];delete el.dom7EventData;}} return this;} function transitionEnd(callback){var events=['webkitTransitionEnd','transitionend'];var dom=this;var i;function fireCallBack(e){if(e.target!==this){return;} callback.call(this,e);for(i=0;i0){if(includeMargins){var styles=this.styles();return this[0].offsetWidth+parseFloat(styles.getPropertyValue('margin-right'))+parseFloat(styles.getPropertyValue('margin-left'));} return this[0].offsetWidth;} return null;} function outerHeight(includeMargins){if(this.length>0){if(includeMargins){var styles=this.styles();return this[0].offsetHeight+parseFloat(styles.getPropertyValue('margin-top'))+parseFloat(styles.getPropertyValue('margin-bottom'));} return this[0].offsetHeight;} return null;} function offset(){if(this.length>0){var el=this[0];var box=el.getBoundingClientRect();var body=doc.body;var clientTop=el.clientTop||body.clientTop||0;var clientLeft=el.clientLeft||body.clientLeft||0;var scrollTop=el===win?win.scrollY:el.scrollTop;var scrollLeft=el===win?win.scrollX:el.scrollLeft;return{top:(box.top+scrollTop)-clientTop,left:(box.left+scrollLeft)-clientLeft,};} return null;} function styles(){if(this[0]){return win.getComputedStyle(this[0],null);} return{};} function css(props,value){var this$1=this;var i;if(arguments.length===1){if(typeof props==='string'){if(this[0]){return win.getComputedStyle(this[0],null).getPropertyValue(props);}}else{for(i=0;ilength-1){return new Dom7([]);} if(index<0){returnIndex=length+index;if(returnIndex<0){return new Dom7([]);} return new Dom7([this[returnIndex]]);} return new Dom7([this[index]]);} function append(){var this$1=this;var args=[],len=arguments.length;while(len--)args[len]=arguments[len];var newChild;for(var k=0;k=0;j-=1){this$1[i].insertBefore(tempDiv.childNodes[j],this$1[i].childNodes[0]);}}else if(newChild instanceof Dom7){for(j=0;j0){if(selector){if(this[0].nextElementSibling&&$(this[0].nextElementSibling).is(selector)){return new Dom7([this[0].nextElementSibling]);} return new Dom7([]);} if(this[0].nextElementSibling){return new Dom7([this[0].nextElementSibling]);} return new Dom7([]);} return new Dom7([]);} function nextAll(selector){var nextEls=[];var el=this[0];if(!el){return new Dom7([]);} while(el.nextElementSibling){var next=el.nextElementSibling;if(selector){if($(next).is(selector)){nextEls.push(next);}}else{nextEls.push(next);} el=next;} return new Dom7(nextEls);} function prev(selector){if(this.length>0){var el=this[0];if(selector){if(el.previousElementSibling&&$(el.previousElementSibling).is(selector)){return new Dom7([el.previousElementSibling]);} return new Dom7([]);} if(el.previousElementSibling){return new Dom7([el.previousElementSibling]);} return new Dom7([]);} return new Dom7([]);} function prevAll(selector){var prevEls=[];var el=this[0];if(!el){return new Dom7([]);} while(el.previousElementSibling){var prev=el.previousElementSibling;if(selector){if($(prev).is(selector)){prevEls.push(prev);}}else{prevEls.push(prev);} el=prev;} return new Dom7(prevEls);} function parent(selector){var this$1=this;var parents=[];for(var i=0;i6){curTransform=curTransform.split(', ').map(function(a){return a.replace(',','.');}).join(', ');} transformMatrix=new win.WebKitCSSMatrix(curTransform==='none'?'':curTransform);}else{transformMatrix=curStyle.MozTransform||curStyle.OTransform||curStyle.MsTransform||curStyle.msTransform||curStyle.transform||curStyle.getPropertyValue('transform').replace('translate(','matrix(1, 0, 0, 1,');matrix=transformMatrix.toString().split(',');} if(axis==='x'){if(win.WebKitCSSMatrix){curTransform=transformMatrix.m41;} else if(matrix.length===16){curTransform=parseFloat(matrix[12]);} else{curTransform=parseFloat(matrix[4]);}} if(axis==='y'){if(win.WebKitCSSMatrix){curTransform=transformMatrix.m42;} else if(matrix.length===16){curTransform=parseFloat(matrix[13]);} else{curTransform=parseFloat(matrix[5]);}} return curTransform||0;},parseUrlQuery:function parseUrlQuery(url){var query={};var urlToParse=url||win.location.href;var i;var params;var param;var length;if(typeof urlToParse==='string'&&urlToParse.length){urlToParse=urlToParse.indexOf('?')>-1?urlToParse.replace(/\S*\?/,''):'';params=urlToParse.split('&').filter(function(paramsPart){return paramsPart!=='';});length=params.length;for(i=0;i0)params[len]=arguments[len+1];var Class=this;if(!Class.prototype.modules){Class.prototype.modules={};} var name=module.name||(((Object.keys(Class.prototype.modules).length)+"_"+(Utils.now())));Class.prototype.modules[name]=module;if(module.proto){Object.keys(module.proto).forEach(function(key){Class.prototype[key]=module.proto[key];});} if(module.static){Object.keys(module.static).forEach(function(key){Class[key]=module.static[key];});} if(module.install){module.install.apply(Class,params);} return Class;};SwiperClass.use=function use(module){var params=[],len=arguments.length-1;while(len-->0)params[len]=arguments[len+1];var Class=this;if(Array.isArray(module)){module.forEach(function(m){return Class.installModule(m);});return Class;} return Class.installModule.apply(Class,[module].concat(params));};Object.defineProperties(SwiperClass,staticAccessors);function updateSize(){var swiper=this;var width;var height;var $el=swiper.$el;if(typeof swiper.params.width!=='undefined'){width=swiper.params.width;}else{width=$el[0].clientWidth;} if(typeof swiper.params.height!=='undefined'){height=swiper.params.height;}else{height=$el[0].clientHeight;} if((width===0&&swiper.isHorizontal())||(height===0&&swiper.isVertical())){return;} width=width-parseInt($el.css('padding-left'),10)-parseInt($el.css('padding-right'),10);height=height-parseInt($el.css('padding-top'),10)-parseInt($el.css('padding-bottom'),10);Utils.extend(swiper,{width:width,height:height,size:swiper.isHorizontal()?width:height,});} function updateSlides(){var swiper=this;var params=swiper.params;var $wrapperEl=swiper.$wrapperEl;var swiperSize=swiper.size;var rtl=swiper.rtlTranslate;var wrongRTL=swiper.wrongRTL;var isVirtual=swiper.virtual&¶ms.virtual.enabled;var previousSlidesLength=isVirtual?swiper.virtual.slides.length:swiper.slides.length;var slides=$wrapperEl.children(("."+(swiper.params.slideClass)));var slidesLength=isVirtual?swiper.virtual.slides.length:slides.length;var snapGrid=[];var slidesGrid=[];var slidesSizesGrid=[];var offsetBefore=params.slidesOffsetBefore;if(typeof offsetBefore==='function'){offsetBefore=params.slidesOffsetBefore.call(swiper);} var offsetAfter=params.slidesOffsetAfter;if(typeof offsetAfter==='function'){offsetAfter=params.slidesOffsetAfter.call(swiper);} var previousSnapGridLength=swiper.snapGrid.length;var previousSlidesGridLength=swiper.snapGrid.length;var spaceBetween=params.spaceBetween;var slidePosition=-offsetBefore;var prevSlideSize=0;var index=0;if(typeof swiperSize==='undefined'){return;} if(typeof spaceBetween==='string'&&spaceBetween.indexOf('%')>=0){spaceBetween=(parseFloat(spaceBetween.replace('%',''))/100)*swiperSize;} swiper.virtualSize=-spaceBetween;if(rtl){slides.css({marginLeft:'',marginTop:''});} else{slides.css({marginRight:'',marginBottom:''});} var slidesNumberEvenToRows;if(params.slidesPerColumn>1){if(Math.floor(slidesLength/params.slidesPerColumn)===slidesLength/swiper.params.slidesPerColumn){slidesNumberEvenToRows=slidesLength;}else{slidesNumberEvenToRows=Math.ceil(slidesLength/params.slidesPerColumn)*params.slidesPerColumn;} if(params.slidesPerView!=='auto'&¶ms.slidesPerColumnFill==='row'){slidesNumberEvenToRows=Math.max(slidesNumberEvenToRows,params.slidesPerView*params.slidesPerColumn);}} var slideSize;var slidesPerColumn=params.slidesPerColumn;var slidesPerRow=slidesNumberEvenToRows/slidesPerColumn;var numFullColumns=slidesPerRow-((params.slidesPerColumn*slidesPerRow)-slidesLength);for(var i=0;i1){var newSlideOrderIndex=(void 0);var column=(void 0);var row=(void 0);if(params.slidesPerColumnFill==='column'){column=Math.floor(i/slidesPerColumn);row=i-(column*slidesPerColumn);if(column>numFullColumns||(column===numFullColumns&&row===slidesPerColumn-1)){row+=1;if(row>=slidesPerColumn){row=0;column+=1;}} newSlideOrderIndex=column+((row*slidesNumberEvenToRows)/slidesPerColumn);slide.css({'-webkit-box-ordinal-group':newSlideOrderIndex,'-moz-box-ordinal-group':newSlideOrderIndex,'-ms-flex-order':newSlideOrderIndex,'-webkit-order':newSlideOrderIndex,order:newSlideOrderIndex,});}else{row=Math.floor(i/slidesPerRow);column=i-(row*slidesPerRow);} slide.css(("margin-"+(swiper.isHorizontal()?'top':'left')),(row!==0&¶ms.spaceBetween)&&(((params.spaceBetween)+"px"))).attr('data-swiper-column',column).attr('data-swiper-row',row);} if(slide.css('display')==='none'){continue;} if(params.slidesPerView==='auto'){var slideStyles=win.getComputedStyle(slide[0],null);var currentTransform=slide[0].style.transform;var currentWebKitTransform=slide[0].style.webkitTransform;if(currentTransform){slide[0].style.transform='none';} if(currentWebKitTransform){slide[0].style.webkitTransform='none';} if(swiper.isHorizontal()){slideSize=slide[0].getBoundingClientRect().width +parseFloat(slideStyles.getPropertyValue('margin-left')) +parseFloat(slideStyles.getPropertyValue('margin-right'));}else{slideSize=slide[0].getBoundingClientRect().height +parseFloat(slideStyles.getPropertyValue('margin-top')) +parseFloat(slideStyles.getPropertyValue('margin-bottom'));} if(currentTransform){slide[0].style.transform=currentTransform;} if(currentWebKitTransform){slide[0].style.webkitTransform=currentWebKitTransform;} if(params.roundLengths){slideSize=Math.floor(slideSize);}}else{slideSize=(swiperSize-((params.slidesPerView-1)*spaceBetween))/params.slidesPerView;if(params.roundLengths){slideSize=Math.floor(slideSize);} if(slides[i]){if(swiper.isHorizontal()){slides[i].style.width=slideSize+"px";}else{slides[i].style.height=slideSize+"px";}}} if(slides[i]){slides[i].swiperSlideSize=slideSize;} slidesSizesGrid.push(slideSize);if(params.centeredSlides){slidePosition=slidePosition+(slideSize/2)+(prevSlideSize/2)+spaceBetween;if(prevSlideSize===0&&i!==0){slidePosition=slidePosition-(swiperSize/2)-spaceBetween;} if(i===0){slidePosition=slidePosition-(swiperSize/2)-spaceBetween;} if(Math.abs(slidePosition)<1/1000){slidePosition=0;} if(params.roundLengths){slidePosition=Math.floor(slidePosition);} if((index)%params.slidesPerGroup===0){snapGrid.push(slidePosition);} slidesGrid.push(slidePosition);}else{if(params.roundLengths){slidePosition=Math.floor(slidePosition);} if((index)%params.slidesPerGroup===0){snapGrid.push(slidePosition);} slidesGrid.push(slidePosition);slidePosition=slidePosition+slideSize+spaceBetween;} swiper.virtualSize+=slideSize+spaceBetween;prevSlideSize=slideSize;index+=1;} swiper.virtualSize=Math.max(swiper.virtualSize,swiperSize)+offsetAfter;var newSlidesGrid;if(rtl&&wrongRTL&&(params.effect==='slide'||params.effect==='coverflow')){$wrapperEl.css({width:((swiper.virtualSize+params.spaceBetween)+"px")});} if(!Support.flexbox||params.setWrapperSize){if(swiper.isHorizontal()){$wrapperEl.css({width:((swiper.virtualSize+params.spaceBetween)+"px")});} else{$wrapperEl.css({height:((swiper.virtualSize+params.spaceBetween)+"px")});}} if(params.slidesPerColumn>1){swiper.virtualSize=(slideSize+params.spaceBetween)*slidesNumberEvenToRows;swiper.virtualSize=Math.ceil(swiper.virtualSize/params.slidesPerColumn)-params.spaceBetween;if(swiper.isHorizontal()){$wrapperEl.css({width:((swiper.virtualSize+params.spaceBetween)+"px")});} else{$wrapperEl.css({height:((swiper.virtualSize+params.spaceBetween)+"px")});} if(params.centeredSlides){newSlidesGrid=[];for(var i$1=0;i$11){snapGrid.push(swiper.virtualSize-swiperSize);}} if(snapGrid.length===0){snapGrid=[0];} if(params.spaceBetween!==0){if(swiper.isHorizontal()){if(rtl){slides.css({marginLeft:(spaceBetween+"px")});} else{slides.css({marginRight:(spaceBetween+"px")});}}else{slides.css({marginBottom:(spaceBetween+"px")});}} Utils.extend(swiper,{slides:slides,snapGrid:snapGrid,slidesGrid:slidesGrid,slidesSizesGrid:slidesSizesGrid,});if(slidesLength!==previousSlidesLength){swiper.emit('slidesLengthChange');} if(snapGrid.length!==previousSnapGridLength){if(swiper.params.watchOverflow){swiper.checkOverflow();} swiper.emit('snapGridLengthChange');} if(slidesGrid.length!==previousSlidesGridLength){swiper.emit('slidesGridLengthChange');} if(params.watchSlidesProgress||params.watchSlidesVisibility){swiper.updateSlidesOffset();}} function updateAutoHeight(speed){var swiper=this;var activeSlides=[];var newHeight=0;var i;if(typeof speed==='number'){swiper.setTransition(speed);}else if(speed===true){swiper.setTransition(swiper.params.speed);} if(swiper.params.slidesPerView!=='auto'&&swiper.params.slidesPerView>1){for(i=0;iswiper.slides.length){break;} activeSlides.push(swiper.slides.eq(index)[0]);}}else{activeSlides.push(swiper.slides.eq(swiper.activeIndex)[0]);} for(i=0;inewHeight?height:newHeight;}} if(newHeight){swiper.$wrapperEl.css('height',(newHeight+"px"));}} function updateSlidesOffset(){var swiper=this;var slides=swiper.slides;for(var i=0;i=0&&slideBefore0&&slideAfter<=swiper.size)||(slideBefore<=0&&slideAfter>=swiper.size);if(isVisible){slides.eq(i).addClass(params.slideVisibleClass);}} slide.progress=rtl?-slideProgress:slideProgress;}} function updateProgress(translate){if(translate===void 0)translate=(this&&this.translate)||0;var swiper=this;var params=swiper.params;var translatesDiff=swiper.maxTranslate()-swiper.minTranslate();var progress=swiper.progress;var isBeginning=swiper.isBeginning;var isEnd=swiper.isEnd;var wasBeginning=isBeginning;var wasEnd=isEnd;if(translatesDiff===0){progress=0;isBeginning=true;isEnd=true;}else{progress=(translate-swiper.minTranslate())/(translatesDiff);isBeginning=progress<=0;isEnd=progress>=1;} Utils.extend(swiper,{progress:progress,isBeginning:isBeginning,isEnd:isEnd,});if(params.watchSlidesProgress||params.watchSlidesVisibility){swiper.updateSlidesProgress(translate);} if(isBeginning&&!wasBeginning){swiper.emit('reachBeginning toEdge');} if(isEnd&&!wasEnd){swiper.emit('reachEnd toEdge');} if((wasBeginning&&!isBeginning)||(wasEnd&&!isEnd)){swiper.emit('fromEdge');} swiper.emit('progress',progress);} function updateSlidesClasses(){var swiper=this;var slides=swiper.slides;var params=swiper.params;var $wrapperEl=swiper.$wrapperEl;var activeIndex=swiper.activeIndex;var realIndex=swiper.realIndex;var isVirtual=swiper.virtual&¶ms.virtual.enabled;slides.removeClass(((params.slideActiveClass)+" "+(params.slideNextClass)+" "+(params.slidePrevClass)+" "+(params.slideDuplicateActiveClass)+" "+(params.slideDuplicateNextClass)+" "+(params.slideDuplicatePrevClass)));var activeSlide;if(isVirtual){activeSlide=swiper.$wrapperEl.find(("."+(params.slideClass)+"[data-swiper-slide-index=\""+activeIndex+"\"]"));}else{activeSlide=slides.eq(activeIndex);} activeSlide.addClass(params.slideActiveClass);if(params.loop){if(activeSlide.hasClass(params.slideDuplicateClass)){$wrapperEl.children(("."+(params.slideClass)+":not(."+(params.slideDuplicateClass)+")[data-swiper-slide-index=\""+realIndex+"\"]")).addClass(params.slideDuplicateActiveClass);}else{$wrapperEl.children(("."+(params.slideClass)+"."+(params.slideDuplicateClass)+"[data-swiper-slide-index=\""+realIndex+"\"]")).addClass(params.slideDuplicateActiveClass);}} var nextSlide=activeSlide.nextAll(("."+(params.slideClass))).eq(0).addClass(params.slideNextClass);if(params.loop&&nextSlide.length===0){nextSlide=slides.eq(0);nextSlide.addClass(params.slideNextClass);} var prevSlide=activeSlide.prevAll(("."+(params.slideClass))).eq(0).addClass(params.slidePrevClass);if(params.loop&&prevSlide.length===0){prevSlide=slides.eq(-1);prevSlide.addClass(params.slidePrevClass);} if(params.loop){if(nextSlide.hasClass(params.slideDuplicateClass)){$wrapperEl.children(("."+(params.slideClass)+":not(."+(params.slideDuplicateClass)+")[data-swiper-slide-index=\""+(nextSlide.attr('data-swiper-slide-index'))+"\"]")).addClass(params.slideDuplicateNextClass);}else{$wrapperEl.children(("."+(params.slideClass)+"."+(params.slideDuplicateClass)+"[data-swiper-slide-index=\""+(nextSlide.attr('data-swiper-slide-index'))+"\"]")).addClass(params.slideDuplicateNextClass);} if(prevSlide.hasClass(params.slideDuplicateClass)){$wrapperEl.children(("."+(params.slideClass)+":not(."+(params.slideDuplicateClass)+")[data-swiper-slide-index=\""+(prevSlide.attr('data-swiper-slide-index'))+"\"]")).addClass(params.slideDuplicatePrevClass);}else{$wrapperEl.children(("."+(params.slideClass)+"."+(params.slideDuplicateClass)+"[data-swiper-slide-index=\""+(prevSlide.attr('data-swiper-slide-index'))+"\"]")).addClass(params.slideDuplicatePrevClass);}}} function updateActiveIndex(newActiveIndex){var swiper=this;var translate=swiper.rtlTranslate?swiper.translate:-swiper.translate;var slidesGrid=swiper.slidesGrid;var snapGrid=swiper.snapGrid;var params=swiper.params;var previousIndex=swiper.activeIndex;var previousRealIndex=swiper.realIndex;var previousSnapIndex=swiper.snapIndex;var activeIndex=newActiveIndex;var snapIndex;if(typeof activeIndex==='undefined'){for(var i=0;i=slidesGrid[i]&&translate=slidesGrid[i]&&translate=slidesGrid[i]){activeIndex=i;}} if(params.normalizeSlideIndex){if(activeIndex<0||typeof activeIndex==='undefined'){activeIndex=0;}}} if(snapGrid.indexOf(translate)>=0){snapIndex=snapGrid.indexOf(translate);}else{snapIndex=Math.floor(activeIndex/params.slidesPerGroup);} if(snapIndex>=snapGrid.length){snapIndex=snapGrid.length-1;} if(activeIndex===previousIndex){if(snapIndex!==previousSnapIndex){swiper.snapIndex=snapIndex;swiper.emit('snapIndexChange');} return;} var realIndex=parseInt(swiper.slides.eq(activeIndex).attr('data-swiper-slide-index')||activeIndex,10);Utils.extend(swiper,{snapIndex:snapIndex,realIndex:realIndex,previousIndex:previousIndex,activeIndex:activeIndex,});swiper.emit('activeIndexChange');swiper.emit('snapIndexChange');if(previousRealIndex!==realIndex){swiper.emit('realIndexChange');} swiper.emit('slideChange');} function updateClickedSlide(e){var swiper=this;var params=swiper.params;var slide=$(e.target).closest(("."+(params.slideClass)))[0];var slideFound=false;if(slide){for(var i=0;ipreviousIndex){dir='next';} else if(activeIndexpreviousIndex){dir='next';} else if(activeIndex=snapGrid.length){snapIndex=snapGrid.length-1;} if((activeIndex||params.initialSlide||0)===(previousIndex||0)&&runCallbacks){swiper.emit('beforeSlideChangeStart');} var translate=-snapGrid[snapIndex];swiper.updateProgress(translate);if(params.normalizeSlideIndex){for(var i=0;i=Math.floor(slidesGrid[i]*100)){slideIndex=i;}}} if(swiper.initialized&&slideIndex!==activeIndex){if(!swiper.allowSlideNext&&translateswiper.translate&&translate>swiper.maxTranslate()){if((activeIndex||0)!==slideIndex){return false;}}} var direction;if(slideIndex>activeIndex){direction='next';} else if(slideIndex(nextSnap-currentSnap)/2){index=swiper.params.slidesPerGroup;}} return swiper.slideTo(index,speed,runCallbacks,internal);} function slideToClickedSlide(){var swiper=this;var params=swiper.params;var $wrapperEl=swiper.$wrapperEl;var slidesPerView=params.slidesPerView==='auto'?swiper.slidesPerViewDynamic():params.slidesPerView;var slideToIndex=swiper.clickedIndex;var realIndex;if(params.loop){if(swiper.animating){return;} realIndex=parseInt($(swiper.clickedSlide).attr('data-swiper-slide-index'),10);if(params.centeredSlides){if((slideToIndex(swiper.slides.length-swiper.loopedSlides)+(slidesPerView/2))){swiper.loopFix();slideToIndex=$wrapperEl.children(("."+(params.slideClass)+"[data-swiper-slide-index=\""+realIndex+"\"]:not(."+(params.slideDuplicateClass)+")")).eq(0).index();Utils.nextTick(function(){swiper.slideTo(slideToIndex);});}else{swiper.slideTo(slideToIndex);}}else if(slideToIndex>swiper.slides.length-slidesPerView){swiper.loopFix();slideToIndex=$wrapperEl.children(("."+(params.slideClass)+"[data-swiper-slide-index=\""+realIndex+"\"]:not(."+(params.slideDuplicateClass)+")")).eq(0).index();Utils.nextTick(function(){swiper.slideTo(slideToIndex);});}else{swiper.slideTo(slideToIndex);}}else{swiper.slideTo(slideToIndex);}} var slide={slideTo:slideTo,slideToLoop:slideToLoop,slideNext:slideNext,slidePrev:slidePrev,slideReset:slideReset,slideToClosest:slideToClosest,slideToClickedSlide:slideToClickedSlide,};function loopCreate(){var swiper=this;var params=swiper.params;var $wrapperEl=swiper.$wrapperEl;$wrapperEl.children(("."+(params.slideClass)+"."+(params.slideDuplicateClass))).remove();var slides=$wrapperEl.children(("."+(params.slideClass)));if(params.loopFillGroupWithBlank){var blankSlidesNum=params.slidesPerGroup-(slides.length%params.slidesPerGroup);if(blankSlidesNum!==params.slidesPerGroup){for(var i=0;islides.length){swiper.loopedSlides=slides.length;} var prependSlides=[];var appendSlides=[];slides.each(function(index,el){var slide=$(el);if(index=slides.length-swiper.loopedSlides){prependSlides.push(el);} slide.attr('data-swiper-slide-index',index);});for(var i$1=0;i$1=0;i$2-=1){$wrapperEl.prepend($(prependSlides[i$2].cloneNode(true)).addClass(params.slideDuplicateClass));}} function loopFix(){var swiper=this;var params=swiper.params;var activeIndex=swiper.activeIndex;var slides=swiper.slides;var loopedSlides=swiper.loopedSlides;var allowSlidePrev=swiper.allowSlidePrev;var allowSlideNext=swiper.allowSlideNext;var snapGrid=swiper.snapGrid;var rtl=swiper.rtlTranslate;var newIndex;swiper.allowSlidePrev=true;swiper.allowSlideNext=true;var snapTranslate=-snapGrid[activeIndex];var diff=snapTranslate-swiper.getTranslate();if(activeIndex=loopedSlides*2)||(activeIndex>=slides.length-loopedSlides)){newIndex=-slides.length+activeIndex+loopedSlides;newIndex+=loopedSlides;var slideChanged$1=swiper.slideTo(newIndex,0,false,true);if(slideChanged$1&&diff!==0){swiper.setTranslate((rtl?-swiper.translate:swiper.translate)-diff);}} swiper.allowSlidePrev=allowSlidePrev;swiper.allowSlideNext=allowSlideNext;} function loopDestroy(){var swiper=this;var $wrapperEl=swiper.$wrapperEl;var params=swiper.params;var slides=swiper.slides;$wrapperEl.children(("."+(params.slideClass)+"."+(params.slideDuplicateClass))).remove();slides.removeAttr('data-swiper-slide-index');} var loop={loopCreate:loopCreate,loopFix:loopFix,loopDestroy:loopDestroy,};function setGrabCursor(moving){var swiper=this;if(Support.touch||!swiper.params.simulateTouch||(swiper.params.watchOverflow&&swiper.isLocked)){return;} var el=swiper.el;el.style.cursor='move';el.style.cursor=moving?'-webkit-grabbing':'-webkit-grab';el.style.cursor=moving?'-moz-grabbin':'-moz-grab';el.style.cursor=moving?'grabbing':'grab';} function unsetGrabCursor(){var swiper=this;if(Support.touch||(swiper.params.watchOverflow&&swiper.isLocked)){return;} swiper.el.style.cursor='';} var grabCursor={setGrabCursor:setGrabCursor,unsetGrabCursor:unsetGrabCursor,};function appendSlide(slides){var swiper=this;var $wrapperEl=swiper.$wrapperEl;var params=swiper.params;if(params.loop){swiper.loopDestroy();} if(typeof slides==='object'&&'length'in slides){for(var i=0;i=baseLength){swiper.appendSlide(slides);return;} var newActiveIndex=activeIndexBuffer>index?activeIndexBuffer+1:activeIndexBuffer;var slidesBuffer=[];for(var i=baseLength-1;i>=index;i-=1){var currentSlide=swiper.slides.eq(i);currentSlide.remove();slidesBuffer.unshift(currentSlide);} if(typeof slides==='object'&&'length'in slides){for(var i$1=0;i$1index?activeIndexBuffer+slides.length:activeIndexBuffer;}else{$wrapperEl.append(slides);} for(var i$2=0;i$2=0;} if(ipad||iphone||ipod){device.os='ios';device.ios=true;} if(iphone&&!ipod){device.osVersion=iphone[2].replace(/_/g,'.');device.iphone=true;} if(ipad){device.osVersion=ipad[2].replace(/_/g,'.');device.ipad=true;} if(ipod){device.osVersion=ipod[3]?ipod[3].replace(/_/g,'.'):null;device.iphone=true;} if(device.ios&&device.osVersion&&ua.indexOf('Version/')>=0){if(device.osVersion.split('.')[0]==='10'){device.osVersion=ua.toLowerCase().split('version/')[1].split(' ')[0];}} device.desktop=!(device.os||device.android||device.webView);device.webView=(iphone||ipad||ipod)&&ua.match(/.*AppleWebKit(?!.*Safari)/i);if(device.os&&device.os==='ios'){var osVersionArr=device.osVersion.split('.');var metaViewport=doc.querySelector('meta[name="viewport"]');device.minimalUi=!device.webView&&(ipod||iphone)&&(osVersionArr[0]*1===7?osVersionArr[1]*1>=1:osVersionArr[0]*1>7)&&metaViewport&&metaViewport.getAttribute('content').indexOf('minimal-ui')>=0;} device.pixelRatio=win.devicePixelRatio||1;return device;}());function onTouchStart(event){var swiper=this;var data=swiper.touchEventsData;var params=swiper.params;var touches=swiper.touches;if(swiper.animating&¶ms.preventInteractionOnTransition){return;} var e=event;if(e.originalEvent){e=e.originalEvent;} data.isTouchEvent=e.type==='touchstart';if(!data.isTouchEvent&&'which'in e&&e.which===3){return;} if(data.isTouched&&data.isMoved){return;} if(params.noSwiping&&$(e.target).closest(params.noSwipingSelector?params.noSwipingSelector:("."+(params.noSwipingClass)))[0]){swiper.allowClick=true;return;} if(params.swipeHandler){if(!$(e).closest(params.swipeHandler)[0]){return;}} touches.currentX=e.type==='touchstart'?e.targetTouches[0].pageX:e.pageX;touches.currentY=e.type==='touchstart'?e.targetTouches[0].pageY:e.pageY;var startX=touches.currentX;var startY=touches.currentY;var edgeSwipeDetection=params.edgeSwipeDetection||params.iOSEdgeSwipeDetection;var edgeSwipeThreshold=params.edgeSwipeThreshold||params.iOSEdgeSwipeThreshold;if(edgeSwipeDetection&&((startX<=edgeSwipeThreshold)||(startX>=win.screen.width-edgeSwipeThreshold))){return;} Utils.extend(data,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined,});touches.startX=startX;touches.startY=startY;data.touchStartTime=Utils.now();swiper.allowClick=true;swiper.updateSize();swiper.swipeDirection=undefined;if(params.threshold>0){data.allowThresholdMove=false;} if(e.type!=='touchstart'){var preventDefault=true;if($(e.target).is(data.formElements)){preventDefault=false;} if(doc.activeElement&&$(doc.activeElement).is(data.formElements)&&doc.activeElement!==e.target){doc.activeElement.blur();} if(preventDefault&&swiper.allowTouchMove){e.preventDefault();}} swiper.emit('touchStart',e);} function onTouchMove(event){var swiper=this;var data=swiper.touchEventsData;var params=swiper.params;var touches=swiper.touches;var rtl=swiper.rtlTranslate;var e=event;if(e.originalEvent){e=e.originalEvent;} if(!data.isTouched){if(data.startMoving&&data.isScrolling){swiper.emit('touchMoveOpposite',e);} return;} if(data.isTouchEvent&&e.type==='mousemove'){return;} var pageX=e.type==='touchmove'?e.targetTouches[0].pageX:e.pageX;var pageY=e.type==='touchmove'?e.targetTouches[0].pageY:e.pageY;if(e.preventedByNestedSwiper){touches.startX=pageX;touches.startY=pageY;return;} if(!swiper.allowTouchMove){swiper.allowClick=false;if(data.isTouched){Utils.extend(touches,{startX:pageX,startY:pageY,currentX:pageX,currentY:pageY,});data.touchStartTime=Utils.now();} return;} if(data.isTouchEvent&¶ms.touchReleaseOnEdges&&!params.loop){if(swiper.isVertical()){if((pageYtouches.startY&&swiper.translate>=swiper.minTranslate())){data.isTouched=false;data.isMoved=false;return;}}else if((pageXtouches.startX&&swiper.translate>=swiper.minTranslate())){return;}} if(data.isTouchEvent&&doc.activeElement){if(e.target===doc.activeElement&&$(e.target).is(data.formElements)){data.isMoved=true;swiper.allowClick=false;return;}} if(data.allowTouchCallbacks){swiper.emit('touchMove',e);} if(e.targetTouches&&e.targetTouches.length>1){return;} touches.currentX=pageX;touches.currentY=pageY;var diffX=touches.currentX-touches.startX;var diffY=touches.currentY-touches.startY;if(swiper.params.threshold&&Math.sqrt((Math.pow(diffX,2))+(Math.pow(diffY,2)))=25){touchAngle=(Math.atan2(Math.abs(diffY),Math.abs(diffX))*180)/Math.PI;data.isScrolling=swiper.isHorizontal()?touchAngle>params.touchAngle:(90-touchAngle>params.touchAngle);}}} if(data.isScrolling){swiper.emit('touchMoveOpposite',e);} if(typeof data.startMoving==='undefined'){if(touches.currentX!==touches.startX||touches.currentY!==touches.startY){data.startMoving=true;}} if(data.isScrolling){data.isTouched=false;return;} if(!data.startMoving){return;} swiper.allowClick=false;e.preventDefault();if(params.touchMoveStopPropagation&&!params.nested){e.stopPropagation();} if(!data.isMoved){if(params.loop){swiper.loopFix();} data.startTranslate=swiper.getTranslate();swiper.setTransition(0);if(swiper.animating){swiper.$wrapperEl.trigger('webkitTransitionEnd transitionend');} data.allowMomentumBounce=false;if(params.grabCursor&&(swiper.allowSlideNext===true||swiper.allowSlidePrev===true)){swiper.setGrabCursor(true);} swiper.emit('sliderFirstMove',e);} swiper.emit('sliderMove',e);data.isMoved=true;var diff=swiper.isHorizontal()?diffX:diffY;touches.diff=diff;diff*=params.touchRatio;if(rtl){diff=-diff;} swiper.swipeDirection=diff>0?'prev':'next';data.currentTranslate=diff+data.startTranslate;var disableParentSwiper=true;var resistanceRatio=params.resistanceRatio;if(params.touchReleaseOnEdges){resistanceRatio=0;} if((diff>0&&data.currentTranslate>swiper.minTranslate())){disableParentSwiper=false;if(params.resistance){data.currentTranslate=(swiper.minTranslate()-1)+(Math.pow((-swiper.minTranslate()+data.startTranslate+diff),resistanceRatio));}}else if(diff<0&&data.currentTranslatedata.startTranslate){data.currentTranslate=data.startTranslate;} if(params.threshold>0){if(Math.abs(diff)>params.threshold||data.allowThresholdMove){if(!data.allowThresholdMove){data.allowThresholdMove=true;touches.startX=touches.currentX;touches.startY=touches.currentY;data.currentTranslate=data.startTranslate;touches.diff=swiper.isHorizontal()?touches.currentX-touches.startX:touches.currentY-touches.startY;return;}}else{data.currentTranslate=data.startTranslate;return;}} if(!params.followFinger){return;} if(params.freeMode||params.watchSlidesProgress||params.watchSlidesVisibility){swiper.updateActiveIndex();swiper.updateSlidesClasses();} if(params.freeMode){if(data.velocities.length===0){data.velocities.push({position:touches[swiper.isHorizontal()?'startX':'startY'],time:data.touchStartTime,});} data.velocities.push({position:touches[swiper.isHorizontal()?'currentX':'currentY'],time:Utils.now(),});} swiper.updateProgress(data.currentTranslate);swiper.setTranslate(data.currentTranslate);} function onTouchEnd(event){var swiper=this;var data=swiper.touchEventsData;var params=swiper.params;var touches=swiper.touches;var rtl=swiper.rtlTranslate;var $wrapperEl=swiper.$wrapperEl;var slidesGrid=swiper.slidesGrid;var snapGrid=swiper.snapGrid;var e=event;if(e.originalEvent){e=e.originalEvent;} if(data.allowTouchCallbacks){swiper.emit('touchEnd',e);} data.allowTouchCallbacks=false;if(!data.isTouched){if(data.isMoved&¶ms.grabCursor){swiper.setGrabCursor(false);} data.isMoved=false;data.startMoving=false;return;} if(params.grabCursor&&data.isMoved&&data.isTouched&&(swiper.allowSlideNext===true||swiper.allowSlidePrev===true)){swiper.setGrabCursor(false);} var touchEndTime=Utils.now();var timeDiff=touchEndTime-data.touchStartTime;if(swiper.allowClick){swiper.updateClickedSlide(e);swiper.emit('tap',e);if(timeDiff<300&&(touchEndTime-data.lastClickTime)>300){if(data.clickTimeout){clearTimeout(data.clickTimeout);} data.clickTimeout=Utils.nextTick(function(){if(!swiper||swiper.destroyed){return;} swiper.emit('click',e);},300);} if(timeDiff<300&&(touchEndTime-data.lastClickTime)<300){if(data.clickTimeout){clearTimeout(data.clickTimeout);} swiper.emit('doubleTap',e);}} data.lastClickTime=Utils.now();Utils.nextTick(function(){if(!swiper.destroyed){swiper.allowClick=true;}});if(!data.isTouched||!data.isMoved||!swiper.swipeDirection||touches.diff===0||data.currentTranslate===data.startTranslate){data.isTouched=false;data.isMoved=false;data.startMoving=false;return;} data.isTouched=false;data.isMoved=false;data.startMoving=false;var currentPos;if(params.followFinger){currentPos=rtl?swiper.translate:-swiper.translate;}else{currentPos=-data.currentTranslate;} if(params.freeMode){if(currentPos<-swiper.minTranslate()){swiper.slideTo(swiper.activeIndex);return;} if(currentPos>-swiper.maxTranslate()){if(swiper.slides.length1){var lastMoveEvent=data.velocities.pop();var velocityEvent=data.velocities.pop();var distance=lastMoveEvent.position-velocityEvent.position;var time=lastMoveEvent.time-velocityEvent.time;swiper.velocity=distance/time;swiper.velocity/=2;if(Math.abs(swiper.velocity)150||(Utils.now()-lastMoveEvent.time)>300){swiper.velocity=0;}}else{swiper.velocity=0;} swiper.velocity*=params.freeModeMomentumVelocityRatio;data.velocities.length=0;var momentumDuration=1000*params.freeModeMomentumRatio;var momentumDistance=swiper.velocity*momentumDuration;var newPosition=swiper.translate+momentumDistance;if(rtl){newPosition=-newPosition;} var doBounce=false;var afterBouncePosition;var bounceAmount=Math.abs(swiper.velocity)*20*params.freeModeMomentumBounceRatio;var needsLoopFix;if(newPositionswiper.minTranslate()){if(params.freeModeMomentumBounce){if(newPosition-swiper.minTranslate()>bounceAmount){newPosition=swiper.minTranslate()+bounceAmount;} afterBouncePosition=swiper.minTranslate();doBounce=true;data.allowMomentumBounce=true;}else{newPosition=swiper.minTranslate();} if(params.loop&¶ms.centeredSlides){needsLoopFix=true;}}else if(params.freeModeSticky){var nextSlide;for(var j=0;j-newPosition){nextSlide=j;break;}} if(Math.abs(snapGrid[nextSlide]-newPosition)=params.longSwipesMs){swiper.updateProgress();swiper.updateActiveIndex();swiper.updateSlidesClasses();} return;} var stopIndex=0;var groupSize=swiper.slidesSizesGrid[0];for(var i=0;i=slidesGrid[i]&¤tPos=slidesGrid[i]){stopIndex=i;groupSize=slidesGrid[slidesGrid.length-1]-slidesGrid[slidesGrid.length-2];}} var ratio=(currentPos-slidesGrid[stopIndex])/groupSize;if(timeDiff>params.longSwipesMs){if(!params.longSwipes){swiper.slideTo(swiper.activeIndex);return;} if(swiper.swipeDirection==='next'){if(ratio>=params.longSwipesRatio){swiper.slideTo(stopIndex+params.slidesPerGroup);} else{swiper.slideTo(stopIndex);}} if(swiper.swipeDirection==='prev'){if(ratio>(1-params.longSwipesRatio)){swiper.slideTo(stopIndex+params.slidesPerGroup);} else{swiper.slideTo(stopIndex);}}}else{if(!params.shortSwipes){swiper.slideTo(swiper.activeIndex);return;} if(swiper.swipeDirection==='next'){swiper.slideTo(stopIndex+params.slidesPerGroup);} if(swiper.swipeDirection==='prev'){swiper.slideTo(stopIndex);}}} function onResize(){var swiper=this;var params=swiper.params;var el=swiper.el;if(el&&el.offsetWidth===0){return;} if(params.breakpoints){swiper.setBreakpoint();} var allowSlideNext=swiper.allowSlideNext;var allowSlidePrev=swiper.allowSlidePrev;var snapGrid=swiper.snapGrid;swiper.allowSlideNext=true;swiper.allowSlidePrev=true;swiper.updateSize();swiper.updateSlides();if(params.freeMode){var newTranslate=Math.min(Math.max(swiper.translate,swiper.maxTranslate()),swiper.minTranslate());swiper.setTranslate(newTranslate);swiper.updateActiveIndex();swiper.updateSlidesClasses();if(params.autoHeight){swiper.updateAutoHeight();}}else{swiper.updateSlidesClasses();if((params.slidesPerView==='auto'||params.slidesPerView>1)&&swiper.isEnd&&!swiper.params.centeredSlides){swiper.slideTo(swiper.slides.length-1,0,false,true);}else{swiper.slideTo(swiper.activeIndex,0,false,true);}} swiper.allowSlidePrev=allowSlidePrev;swiper.allowSlideNext=allowSlideNext;if(swiper.params.watchOverflow&&snapGrid!==swiper.snapGrid){swiper.checkOverflow();}} function onClick(e){var swiper=this;if(!swiper.allowClick){if(swiper.params.preventClicks){e.preventDefault();} if(swiper.params.preventClicksPropagation&&swiper.animating){e.stopPropagation();e.stopImmediatePropagation();}}} function attachEvents(){var swiper=this;var params=swiper.params;var touchEvents=swiper.touchEvents;var el=swiper.el;var wrapperEl=swiper.wrapperEl;{swiper.onTouchStart=onTouchStart.bind(swiper);swiper.onTouchMove=onTouchMove.bind(swiper);swiper.onTouchEnd=onTouchEnd.bind(swiper);} swiper.onClick=onClick.bind(swiper);var target=params.touchEventsTarget==='container'?el:wrapperEl;var capture=!!params.nested;{if(!Support.touch&&(Support.pointerEvents||Support.prefixedPointerEvents)){target.addEventListener(touchEvents.start,swiper.onTouchStart,false);doc.addEventListener(touchEvents.move,swiper.onTouchMove,capture);doc.addEventListener(touchEvents.end,swiper.onTouchEnd,false);}else{if(Support.touch){var passiveListener=touchEvents.start==='touchstart'&&Support.passiveListener&¶ms.passiveListeners?{passive:true,capture:false}:false;target.addEventListener(touchEvents.start,swiper.onTouchStart,passiveListener);target.addEventListener(touchEvents.move,swiper.onTouchMove,Support.passiveListener?{passive:false,capture:capture}:capture);target.addEventListener(touchEvents.end,swiper.onTouchEnd,passiveListener);} if((params.simulateTouch&&!Device.ios&&!Device.android)||(params.simulateTouch&&!Support.touch&&Device.ios)){target.addEventListener('mousedown',swiper.onTouchStart,false);doc.addEventListener('mousemove',swiper.onTouchMove,capture);doc.addEventListener('mouseup',swiper.onTouchEnd,false);}} if(params.preventClicks||params.preventClicksPropagation){target.addEventListener('click',swiper.onClick,true);}} swiper.on((Device.ios||Device.android?'resize orientationchange observerUpdate':'resize observerUpdate'),onResize,true);} function detachEvents(){var swiper=this;var params=swiper.params;var touchEvents=swiper.touchEvents;var el=swiper.el;var wrapperEl=swiper.wrapperEl;var target=params.touchEventsTarget==='container'?el:wrapperEl;var capture=!!params.nested;{if(!Support.touch&&(Support.pointerEvents||Support.prefixedPointerEvents)){target.removeEventListener(touchEvents.start,swiper.onTouchStart,false);doc.removeEventListener(touchEvents.move,swiper.onTouchMove,capture);doc.removeEventListener(touchEvents.end,swiper.onTouchEnd,false);}else{if(Support.touch){var passiveListener=touchEvents.start==='onTouchStart'&&Support.passiveListener&¶ms.passiveListeners?{passive:true,capture:false}:false;target.removeEventListener(touchEvents.start,swiper.onTouchStart,passiveListener);target.removeEventListener(touchEvents.move,swiper.onTouchMove,capture);target.removeEventListener(touchEvents.end,swiper.onTouchEnd,passiveListener);} if((params.simulateTouch&&!Device.ios&&!Device.android)||(params.simulateTouch&&!Support.touch&&Device.ios)){target.removeEventListener('mousedown',swiper.onTouchStart,false);doc.removeEventListener('mousemove',swiper.onTouchMove,capture);doc.removeEventListener('mouseup',swiper.onTouchEnd,false);}} if(params.preventClicks||params.preventClicksPropagation){target.removeEventListener('click',swiper.onClick,true);}} swiper.off((Device.ios||Device.android?'resize orientationchange observerUpdate':'resize observerUpdate'),onResize);} var events={attachEvents:attachEvents,detachEvents:detachEvents,};function setBreakpoint(){var swiper=this;var activeIndex=swiper.activeIndex;var initialized=swiper.initialized;var loopedSlides=swiper.loopedSlides;if(loopedSlides===void 0)loopedSlides=0;var params=swiper.params;var breakpoints=params.breakpoints;if(!breakpoints||(breakpoints&&Object.keys(breakpoints).length===0)){return;} var breakpoint=swiper.getBreakpoint(breakpoints);if(breakpoint&&swiper.currentBreakpoint!==breakpoint){var breakPointsParams=breakpoint in breakpoints?breakpoints[breakpoint]:swiper.originalParams;var needsReLoop=params.loop&&(breakPointsParams.slidesPerView!==params.slidesPerView);Utils.extend(swiper.params,breakPointsParams);Utils.extend(swiper,{allowTouchMove:swiper.params.allowTouchMove,allowSlideNext:swiper.params.allowSlideNext,allowSlidePrev:swiper.params.allowSlidePrev,});swiper.currentBreakpoint=breakpoint;if(needsReLoop&&initialized){swiper.loopDestroy();swiper.loopCreate();swiper.updateSlides();swiper.slideTo((activeIndex-loopedSlides)+swiper.loopedSlides,0,false);} swiper.emit('breakpoint',breakPointsParams);}} function getBreakpoint(breakpoints){if(!breakpoints){return undefined;} var breakpoint=false;var points=[];Object.keys(breakpoints).forEach(function(point){points.push(point);});points.sort(function(a,b){return parseInt(a,10)-parseInt(b,10);});for(var i=0;i=win.innerWidth&&!breakpoint){breakpoint=point;}} return breakpoint||'max';} var breakpoints={setBreakpoint:setBreakpoint,getBreakpoint:getBreakpoint};var Browser=(function Browser(){function isSafari(){var ua=win.navigator.userAgent.toLowerCase();return(ua.indexOf('safari')>=0&&ua.indexOf('chrome')<0&&ua.indexOf('android')<0);} return{isIE:!!win.navigator.userAgent.match(/Trident/g)||!!win.navigator.userAgent.match(/MSIE/g),isSafari:isSafari(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(win.navigator.userAgent),};}());function addClasses(){var swiper=this;var classNames=swiper.classNames;var params=swiper.params;var rtl=swiper.rtl;var $el=swiper.$el;var suffixes=[];suffixes.push(params.direction);if(params.freeMode){suffixes.push('free-mode');} if(!Support.flexbox){suffixes.push('no-flexbox');} if(params.autoHeight){suffixes.push('autoheight');} if(rtl){suffixes.push('rtl');} if(params.slidesPerColumn>1){suffixes.push('multirow');} if(Device.android){suffixes.push('android');} if(Device.ios){suffixes.push('ios');} if(Browser.isIE&&(Support.pointerEvents||Support.prefixedPointerEvents)){suffixes.push(("wp8-"+(params.direction)));} suffixes.forEach(function(suffix){classNames.push(params.containerModifierClass+suffix);});$el.addClass(classNames.join(' '));} function removeClasses(){var swiper=this;var $el=swiper.$el;var classNames=swiper.classNames;$el.removeClass(classNames.join(' '));} var classes={addClasses:addClasses,removeClasses:removeClasses};function loadImage(imageEl,src,srcset,sizes,checkForComplete,callback){var image;function onReady(){if(callback){callback();}} if(!imageEl.complete||!checkForComplete){if(src){image=new win.Image();image.onload=onReady;image.onerror=onReady;if(sizes){image.sizes=sizes;} if(srcset){image.srcset=srcset;} if(src){image.src=src;}}else{onReady();}}else{onReady();}} function preloadImages(){var swiper=this;swiper.imagesToLoad=swiper.$el.find('img');function onReady(){if(typeof swiper==='undefined'||swiper===null||!swiper||swiper.destroyed){return;} if(swiper.imagesLoaded!==undefined){swiper.imagesLoaded+=1;} if(swiper.imagesLoaded===swiper.imagesToLoad.length){if(swiper.params.updateOnImagesReady){swiper.update();} swiper.emit('imagesReady');}} for(var i=0;i1){var swipers=[];$el.each(function(index,containerEl){var newParams=Utils.extend({},params,{el:containerEl});swipers.push(new Swiper(newParams));});return swipers;} el.swiper=swiper;$el.data('swiper',swiper);var $wrapperEl=$el.children(("."+(swiper.params.wrapperClass)));Utils.extend(swiper,{$el:$el,el:el,$wrapperEl:$wrapperEl,wrapperEl:$wrapperEl[0],classNames:[],slides:$(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function isHorizontal(){return swiper.params.direction==='horizontal';},isVertical:function isVertical(){return swiper.params.direction==='vertical';},rtl:(el.dir.toLowerCase()==='rtl'||$el.css('direction')==='rtl'),rtlTranslate:swiper.params.direction==='horizontal'&&(el.dir.toLowerCase()==='rtl'||$el.css('direction')==='rtl'),wrongRTL:$wrapperEl.css('display')==='-webkit-box',activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,allowSlideNext:swiper.params.allowSlideNext,allowSlidePrev:swiper.params.allowSlidePrev,touchEvents:(function touchEvents(){var touch=['touchstart','touchmove','touchend'];var desktop=['mousedown','mousemove','mouseup'];if(Support.pointerEvents){desktop=['pointerdown','pointermove','pointerup'];}else if(Support.prefixedPointerEvents){desktop=['MSPointerDown','MSPointerMove','MSPointerUp'];} swiper.touchEventsTouch={start:touch[0],move:touch[1],end:touch[2],};swiper.touchEventsDesktop={start:desktop[0],move:desktop[1],end:desktop[2],};return Support.touch||!swiper.params.simulateTouch?swiper.touchEventsTouch:swiper.touchEventsDesktop;}()),touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,formElements:'input, select, option, textarea, button, video',lastClickTime:Utils.now(),clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,isTouchEvent:undefined,startMoving:undefined,},allowClick:true,allowTouchMove:swiper.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0,},imagesToLoad:[],imagesLoaded:0,});swiper.useModules();if(swiper.params.init){swiper.init();} return swiper;} if(SwiperClass$$1)Swiper.__proto__=SwiperClass$$1;Swiper.prototype=Object.create(SwiperClass$$1&&SwiperClass$$1.prototype);Swiper.prototype.constructor=Swiper;var staticAccessors={extendedDefaults:{configurable:true},defaults:{configurable:true},Class:{configurable:true},$:{configurable:true}};Swiper.prototype.slidesPerViewDynamic=function slidesPerViewDynamic(){var swiper=this;var params=swiper.params;var slides=swiper.slides;var slidesGrid=swiper.slidesGrid;var swiperSize=swiper.size;var activeIndex=swiper.activeIndex;var spv=1;if(params.centeredSlides){var slideSize=slides[activeIndex].swiperSlideSize;var breakLoop;for(var i=activeIndex+1;iswiperSize){breakLoop=true;}}} for(var i$1=activeIndex-1;i$1>=0;i$1-=1){if(slides[i$1]&&!breakLoop){slideSize+=slides[i$1].swiperSlideSize;spv+=1;if(slideSize>swiperSize){breakLoop=true;}}}}else{for(var i$2=activeIndex+1;i$21)&&swiper.isEnd&&!swiper.params.centeredSlides){translated=swiper.slideTo(swiper.slides.length-1,0,false,true);}else{translated=swiper.slideTo(swiper.activeIndex,0,false,true);} if(!translated){setTranslate();}} if(params.watchOverflow&&snapGrid!==swiper.snapGrid){swiper.checkOverflow();} swiper.emit('update');};Swiper.prototype.init=function init(){var swiper=this;if(swiper.initialized){return;} swiper.emit('beforeInit');if(swiper.params.breakpoints){swiper.setBreakpoint();} swiper.addClasses();if(swiper.params.loop){swiper.loopCreate();} swiper.updateSize();swiper.updateSlides();if(swiper.params.watchOverflow){swiper.checkOverflow();} if(swiper.params.grabCursor){swiper.setGrabCursor();} if(swiper.params.preloadImages){swiper.preloadImages();} if(swiper.params.loop){swiper.slideTo(swiper.params.initialSlide+swiper.loopedSlides,0,swiper.params.runCallbacksOnInit);}else{swiper.slideTo(swiper.params.initialSlide,0,swiper.params.runCallbacksOnInit);} swiper.attachEvents();swiper.initialized=true;swiper.emit('init');};Swiper.prototype.destroy=function destroy(deleteInstance,cleanStyles){if(deleteInstance===void 0)deleteInstance=true;if(cleanStyles===void 0)cleanStyles=true;var swiper=this;var params=swiper.params;var $el=swiper.$el;var $wrapperEl=swiper.$wrapperEl;var slides=swiper.slides;if(typeof swiper.params==='undefined'||swiper.destroyed){return null;} swiper.emit('beforeDestroy');swiper.initialized=false;swiper.detachEvents();if(params.loop){swiper.loopDestroy();} if(cleanStyles){swiper.removeClasses();$el.removeAttr('style');$wrapperEl.removeAttr('style');if(slides&&slides.length){slides.removeClass([params.slideVisibleClass,params.slideActiveClass,params.slideNextClass,params.slidePrevClass].join(' ')).removeAttr('style').removeAttr('data-swiper-slide-index').removeAttr('data-swiper-column').removeAttr('data-swiper-row');}} swiper.emit('destroy');Object.keys(swiper.eventsListeners).forEach(function(eventName){swiper.off(eventName);});if(deleteInstance!==false){swiper.$el[0].swiper=null;swiper.$el.data('swiper',null);Utils.deleteProps(swiper);} swiper.destroyed=true;return null;};Swiper.extendDefaults=function extendDefaults(newDefaults){Utils.extend(extendedDefaults,newDefaults);};staticAccessors.extendedDefaults.get=function(){return extendedDefaults;};staticAccessors.defaults.get=function(){return defaults;};staticAccessors.Class.get=function(){return SwiperClass$$1;};staticAccessors.$.get=function(){return $;};Object.defineProperties(Swiper,staticAccessors);return Swiper;}(SwiperClass));var Device$1={name:'device',proto:{device:Device,},static:{device:Device,},};var Support$1={name:'support',proto:{support:Support,},static:{support:Support,},};var Browser$1={name:'browser',proto:{browser:Browser,},static:{browser:Browser,},};var Resize={name:'resize',create:function create(){var swiper=this;Utils.extend(swiper,{resize:{resizeHandler:function resizeHandler(){if(!swiper||swiper.destroyed||!swiper.initialized){return;} swiper.emit('beforeResize');swiper.emit('resize');},orientationChangeHandler:function orientationChangeHandler(){if(!swiper||swiper.destroyed||!swiper.initialized){return;} swiper.emit('orientationchange');},},});},on:{init:function init(){var swiper=this;win.addEventListener('resize',swiper.resize.resizeHandler);win.addEventListener('orientationchange',swiper.resize.orientationChangeHandler);},destroy:function destroy(){var swiper=this;win.removeEventListener('resize',swiper.resize.resizeHandler);win.removeEventListener('orientationchange',swiper.resize.orientationChangeHandler);},},};var Observer={func:win.MutationObserver||win.WebkitMutationObserver,attach:function attach(target,options){if(options===void 0)options={};var swiper=this;var ObserverFunc=Observer.func;var observer=new ObserverFunc(function(mutations){if(mutations.length===1){swiper.emit('observerUpdate',mutations[0]);return;} var observerUpdate=function observerUpdate(){swiper.emit('observerUpdate',mutations[0]);};if(win.requestAnimationFrame){win.requestAnimationFrame(observerUpdate);}else{win.setTimeout(observerUpdate,0);}});observer.observe(target,{attributes:typeof options.attributes==='undefined'?true:options.attributes,childList:typeof options.childList==='undefined'?true:options.childList,characterData:typeof options.characterData==='undefined'?true:options.characterData,});swiper.observer.observers.push(observer);},init:function init(){var swiper=this;if(!Support.observer||!swiper.params.observer){return;} if(swiper.params.observeParents){var containerParents=swiper.$el.parents();for(var i=0;ito){swiper.$wrapperEl.find(("."+(swiper.params.slideClass)+"[data-swiper-slide-index=\""+i+"\"]")).remove();}}} for(var i$1=0;i$1=from&&i$1<=to){if(typeof previousTo==='undefined'||force){appendIndexes.push(i$1);}else{if(i$1>previousTo){appendIndexes.push(i$1);} if(i$1"+slide+""));if(!$slideEl.attr('data-swiper-slide-index')){$slideEl.attr('data-swiper-slide-index',index);} if(params.cache){swiper.virtual.cache[index]=$slideEl;} return $slideEl;},appendSlide:function appendSlide(slide){var swiper=this;swiper.virtual.slides.push(slide);swiper.virtual.update(true);},prependSlide:function prependSlide(slide){var swiper=this;swiper.virtual.slides.unshift(slide);if(swiper.params.virtual.cache){var cache=swiper.virtual.cache;var newCache={};Object.keys(cache).forEach(function(cachedIndex){newCache[cachedIndex+1]=cache[cachedIndex];});swiper.virtual.cache=newCache;} swiper.virtual.update(true);swiper.slideNext(0);},};var Virtual$1={name:'virtual',params:{virtual:{enabled:false,slides:[],cache:true,renderSlide:null,renderExternal:null,},},create:function create(){var swiper=this;Utils.extend(swiper,{virtual:{update:Virtual.update.bind(swiper),appendSlide:Virtual.appendSlide.bind(swiper),prependSlide:Virtual.prependSlide.bind(swiper),renderSlide:Virtual.renderSlide.bind(swiper),slides:swiper.params.virtual.slides,cache:{},},});},on:{beforeInit:function beforeInit(){var swiper=this;if(!swiper.params.virtual.enabled){return;} swiper.classNames.push(((swiper.params.containerModifierClass)+"virtual"));var overwriteParams={watchSlidesProgress:true,};Utils.extend(swiper.params,overwriteParams);Utils.extend(swiper.originalParams,overwriteParams);swiper.virtual.update();},setTranslate:function setTranslate(){var swiper=this;if(!swiper.params.virtual.enabled){return;} swiper.virtual.update();},},};var Keyboard={handle:function handle(event){var swiper=this;var rtl=swiper.rtlTranslate;var e=event;if(e.originalEvent){e=e.originalEvent;} var kc=e.keyCode||e.charCode;if(!swiper.allowSlideNext&&((swiper.isHorizontal()&&kc===39)||(swiper.isVertical()&&kc===40))){return false;} if(!swiper.allowSlidePrev&&((swiper.isHorizontal()&&kc===37)||(swiper.isVertical()&&kc===38))){return false;} if(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey){return undefined;} if(doc.activeElement&&doc.activeElement.nodeName&&(doc.activeElement.nodeName.toLowerCase()==='input'||doc.activeElement.nodeName.toLowerCase()==='textarea')){return undefined;} if(swiper.params.keyboard.onlyInViewport&&(kc===37||kc===39||kc===38||kc===40)){var inView=false;if(swiper.$el.parents(("."+(swiper.params.slideClass))).length>0&&swiper.$el.parents(("."+(swiper.params.slideActiveClass))).length===0){return undefined;} var windowWidth=win.innerWidth;var windowHeight=win.innerHeight;var swiperOffset=swiper.$el.offset();if(rtl){swiperOffset.left-=swiper.$el[0].scrollLeft;} var swiperCoord=[[swiperOffset.left,swiperOffset.top],[swiperOffset.left+swiper.width,swiperOffset.top],[swiperOffset.left,swiperOffset.top+swiper.height],[swiperOffset.left+swiper.width,swiperOffset.top+swiper.height]];for(var i=0;i=0&&point[0]<=windowWidth&&point[1]>=0&&point[1]<=windowHeight){inView=true;}} if(!inView){return undefined;}} if(swiper.isHorizontal()){if(kc===37||kc===39){if(e.preventDefault){e.preventDefault();} else{e.returnValue=false;}} if((kc===39&&!rtl)||(kc===37&&rtl)){swiper.slideNext();} if((kc===37&&!rtl)||(kc===39&&rtl)){swiper.slidePrev();}}else{if(kc===38||kc===40){if(e.preventDefault){e.preventDefault();} else{e.returnValue=false;}} if(kc===40){swiper.slideNext();} if(kc===38){swiper.slidePrev();}} swiper.emit('keyPress',kc);return undefined;},enable:function enable(){var swiper=this;if(swiper.keyboard.enabled){return;} $(doc).on('keydown',swiper.keyboard.handle);swiper.keyboard.enabled=true;},disable:function disable(){var swiper=this;if(!swiper.keyboard.enabled){return;} $(doc).off('keydown',swiper.keyboard.handle);swiper.keyboard.enabled=false;},};var Keyboard$1={name:'keyboard',params:{keyboard:{enabled:false,onlyInViewport:true,},},create:function create(){var swiper=this;Utils.extend(swiper,{keyboard:{enabled:false,enable:Keyboard.enable.bind(swiper),disable:Keyboard.disable.bind(swiper),handle:Keyboard.handle.bind(swiper),},});},on:{init:function init(){var swiper=this;if(swiper.params.keyboard.enabled){swiper.keyboard.enable();}},destroy:function destroy(){var swiper=this;if(swiper.keyboard.enabled){swiper.keyboard.disable();}},},};function isEventSupported(){var eventName='onwheel';var isSupported=eventName in doc;if(!isSupported){var element=doc.createElement('div');element.setAttribute(eventName,'return;');isSupported=typeof element[eventName]==='function';} if(!isSupported&&doc.implementation&&doc.implementation.hasFeature&&doc.implementation.hasFeature('','')!==true){isSupported=doc.implementation.hasFeature('Events.wheel','3.0');} return isSupported;} var Mousewheel={lastScrollTime:Utils.now(),event:(function getEvent(){if(win.navigator.userAgent.indexOf('firefox')>-1){return'DOMMouseScroll';} return isEventSupported()?'wheel':'mousewheel';}()),normalize:function normalize(e){var PIXEL_STEP=10;var LINE_HEIGHT=40;var PAGE_HEIGHT=800;var sX=0;var sY=0;var pX=0;var pY=0;if('detail'in e){sY=e.detail;} if('wheelDelta'in e){sY=-e.wheelDelta/120;} if('wheelDeltaY'in e){sY=-e.wheelDeltaY/120;} if('wheelDeltaX'in e){sX=-e.wheelDeltaX/120;} if('axis'in e&&e.axis===e.HORIZONTAL_AXIS){sX=sY;sY=0;} pX=sX*PIXEL_STEP;pY=sY*PIXEL_STEP;if('deltaY'in e){pY=e.deltaY;} if('deltaX'in e){pX=e.deltaX;} if((pX||pY)&&e.deltaMode){if(e.deltaMode===1){pX*=LINE_HEIGHT;pY*=LINE_HEIGHT;}else{pX*=PAGE_HEIGHT;pY*=PAGE_HEIGHT;}} if(pX&&!sX){sX=(pX<1)?-1:1;} if(pY&&!sY){sY=(pY<1)?-1:1;} return{spinX:sX,spinY:sY,pixelX:pX,pixelY:pY,};},handleMouseEnter:function handleMouseEnter(){var swiper=this;swiper.mouseEntered=true;},handleMouseLeave:function handleMouseLeave(){var swiper=this;swiper.mouseEntered=false;},handle:function handle(event){var e=event;var swiper=this;var params=swiper.params.mousewheel;if(!swiper.mouseEntered&&!params.releaseOnEdges){return true;} if(e.originalEvent){e=e.originalEvent;} var delta=0;var rtlFactor=swiper.rtlTranslate?-1:1;var data=Mousewheel.normalize(e);if(params.forceToAxis){if(swiper.isHorizontal()){if(Math.abs(data.pixelX)>Math.abs(data.pixelY)){delta=data.pixelX*rtlFactor;} else{return true;}}else if(Math.abs(data.pixelY)>Math.abs(data.pixelX)){delta=data.pixelY;} else{return true;}}else{delta=Math.abs(data.pixelX)>Math.abs(data.pixelY)?-data.pixelX*rtlFactor:-data.pixelY;} if(delta===0){return true;} if(params.invert){delta=-delta;} if(!swiper.params.freeMode){if(Utils.now()-swiper.mousewheel.lastScrollTime>60){if(delta<0){if((!swiper.isEnd||swiper.params.loop)&&!swiper.animating){swiper.slideNext();swiper.emit('scroll',e);}else if(params.releaseOnEdges){return true;}}else if((!swiper.isBeginning||swiper.params.loop)&&!swiper.animating){swiper.slidePrev();swiper.emit('scroll',e);}else if(params.releaseOnEdges){return true;}} swiper.mousewheel.lastScrollTime=(new win.Date()).getTime();}else{if(swiper.params.loop){swiper.loopFix();} var position=swiper.getTranslate()+(delta*params.sensitivity);var wasBeginning=swiper.isBeginning;var wasEnd=swiper.isEnd;if(position>=swiper.minTranslate()){position=swiper.minTranslate();} if(position<=swiper.maxTranslate()){position=swiper.maxTranslate();} swiper.setTransition(0);swiper.setTranslate(position);swiper.updateProgress();swiper.updateActiveIndex();swiper.updateSlidesClasses();if((!wasBeginning&&swiper.isBeginning)||(!wasEnd&&swiper.isEnd)){swiper.updateSlidesClasses();} if(swiper.params.freeModeSticky){clearTimeout(swiper.mousewheel.timeout);swiper.mousewheel.timeout=Utils.nextTick(function(){swiper.slideToClosest();},300);} swiper.emit('scroll',e);if(swiper.params.autoplay&&swiper.params.autoplayDisableOnInteraction){swiper.autoplay.stop();} if(position===swiper.minTranslate()||position===swiper.maxTranslate()){return true;}} if(e.preventDefault){e.preventDefault();} else{e.returnValue=false;} return false;},enable:function enable(){var swiper=this;if(!Mousewheel.event){return false;} if(swiper.mousewheel.enabled){return false;} var target=swiper.$el;if(swiper.params.mousewheel.eventsTarged!=='container'){target=$(swiper.params.mousewheel.eventsTarged);} target.on('mouseenter',swiper.mousewheel.handleMouseEnter);target.on('mouseleave',swiper.mousewheel.handleMouseLeave);target.on(Mousewheel.event,swiper.mousewheel.handle);swiper.mousewheel.enabled=true;return true;},disable:function disable(){var swiper=this;if(!Mousewheel.event){return false;} if(!swiper.mousewheel.enabled){return false;} var target=swiper.$el;if(swiper.params.mousewheel.eventsTarged!=='container'){target=$(swiper.params.mousewheel.eventsTarged);} target.off(Mousewheel.event,swiper.mousewheel.handle);swiper.mousewheel.enabled=false;return true;},};var Mousewheel$1={name:'mousewheel',params:{mousewheel:{enabled:false,releaseOnEdges:false,invert:false,forceToAxis:false,sensitivity:1,eventsTarged:'container',},},create:function create(){var swiper=this;Utils.extend(swiper,{mousewheel:{enabled:false,enable:Mousewheel.enable.bind(swiper),disable:Mousewheel.disable.bind(swiper),handle:Mousewheel.handle.bind(swiper),handleMouseEnter:Mousewheel.handleMouseEnter.bind(swiper),handleMouseLeave:Mousewheel.handleMouseLeave.bind(swiper),lastScrollTime:Utils.now(),},});},on:{init:function init(){var swiper=this;if(swiper.params.mousewheel.enabled){swiper.mousewheel.enable();}},destroy:function destroy(){var swiper=this;if(swiper.mousewheel.enabled){swiper.mousewheel.disable();}},},};var Navigation={update:function update(){var swiper=this;var params=swiper.params.navigation;if(swiper.params.loop){return;} var ref=swiper.navigation;var $nextEl=ref.$nextEl;var $prevEl=ref.$prevEl;if($prevEl&&$prevEl.length>0){if(swiper.isBeginning){$prevEl.addClass(params.disabledClass);}else{$prevEl.removeClass(params.disabledClass);} $prevEl[swiper.params.watchOverflow&&swiper.isLocked?'addClass':'removeClass'](params.lockClass);} if($nextEl&&$nextEl.length>0){if(swiper.isEnd){$nextEl.addClass(params.disabledClass);}else{$nextEl.removeClass(params.disabledClass);} $nextEl[swiper.params.watchOverflow&&swiper.isLocked?'addClass':'removeClass'](params.lockClass);}},init:function init(){var swiper=this;var params=swiper.params.navigation;if(!(params.nextEl||params.prevEl)){return;} var $nextEl;var $prevEl;if(params.nextEl){$nextEl=$(params.nextEl);if(swiper.params.uniqueNavElements&&typeof params.nextEl==='string'&&$nextEl.length>1&&swiper.$el.find(params.nextEl).length===1){$nextEl=swiper.$el.find(params.nextEl);}} if(params.prevEl){$prevEl=$(params.prevEl);if(swiper.params.uniqueNavElements&&typeof params.prevEl==='string'&&$prevEl.length>1&&swiper.$el.find(params.prevEl).length===1){$prevEl=swiper.$el.find(params.prevEl);}} if($nextEl&&$nextEl.length>0){$nextEl.on('click',function(e){e.preventDefault();if(swiper.isEnd&&!swiper.params.loop){return;} swiper.slideNext();});} if($prevEl&&$prevEl.length>0){$prevEl.on('click',function(e){e.preventDefault();if(swiper.isBeginning&&!swiper.params.loop){return;} swiper.slidePrev();});} Utils.extend(swiper.navigation,{$nextEl:$nextEl,nextEl:$nextEl&&$nextEl[0],$prevEl:$prevEl,prevEl:$prevEl&&$prevEl[0],});},destroy:function destroy(){var swiper=this;var ref=swiper.navigation;var $nextEl=ref.$nextEl;var $prevEl=ref.$prevEl;if($nextEl&&$nextEl.length){$nextEl.off('click');$nextEl.removeClass(swiper.params.navigation.disabledClass);} if($prevEl&&$prevEl.length){$prevEl.off('click');$prevEl.removeClass(swiper.params.navigation.disabledClass);}},};var Navigation$1={name:'navigation',params:{navigation:{nextEl:null,prevEl:null,hideOnClick:false,disabledClass:'swiper-button-disabled',hiddenClass:'swiper-button-hidden',lockClass:'swiper-button-lock',},},create:function create(){var swiper=this;Utils.extend(swiper,{navigation:{init:Navigation.init.bind(swiper),update:Navigation.update.bind(swiper),destroy:Navigation.destroy.bind(swiper),},});},on:{init:function init(){var swiper=this;swiper.navigation.init();swiper.navigation.update();},toEdge:function toEdge(){var swiper=this;swiper.navigation.update();},fromEdge:function fromEdge(){var swiper=this;swiper.navigation.update();},destroy:function destroy(){var swiper=this;swiper.navigation.destroy();},click:function click(e){var swiper=this;var ref=swiper.navigation;var $nextEl=ref.$nextEl;var $prevEl=ref.$prevEl;if(swiper.params.navigation.hideOnClick&&!$(e.target).is($prevEl)&&!$(e.target).is($nextEl)){if($nextEl){$nextEl.toggleClass(swiper.params.navigation.hiddenClass);} if($prevEl){$prevEl.toggleClass(swiper.params.navigation.hiddenClass);}}},},};var Pagination={update:function update(){var swiper=this;var rtl=swiper.rtl;var params=swiper.params.pagination;if(!params.el||!swiper.pagination.el||!swiper.pagination.$el||swiper.pagination.$el.length===0){return;} var slidesLength=swiper.virtual&&swiper.params.virtual.enabled?swiper.virtual.slides.length:swiper.slides.length;var $el=swiper.pagination.$el;var current;var total=swiper.params.loop?Math.ceil((slidesLength-(swiper.loopedSlides*2))/swiper.params.slidesPerGroup):swiper.snapGrid.length;if(swiper.params.loop){current=Math.ceil((swiper.activeIndex-swiper.loopedSlides)/swiper.params.slidesPerGroup);if(current>slidesLength-1-(swiper.loopedSlides*2)){current-=(slidesLength-(swiper.loopedSlides*2));} if(current>total-1){current-=total;} if(current<0&&swiper.params.paginationType!=='bullets'){current=total+current;}}else if(typeof swiper.snapIndex!=='undefined'){current=swiper.snapIndex;}else{current=swiper.activeIndex||0;} if(params.type==='bullets'&&swiper.pagination.bullets&&swiper.pagination.bullets.length>0){var bullets=swiper.pagination.bullets;var firstIndex;var lastIndex;var midIndex;if(params.dynamicBullets){swiper.pagination.bulletSize=bullets.eq(0)[swiper.isHorizontal()?'outerWidth':'outerHeight'](true);$el.css(swiper.isHorizontal()?'width':'height',((swiper.pagination.bulletSize*(params.dynamicMainBullets+4))+"px"));if(params.dynamicMainBullets>1&&swiper.previousIndex!==undefined){swiper.pagination.dynamicBulletIndex+=(current-swiper.previousIndex);if(swiper.pagination.dynamicBulletIndex>(params.dynamicMainBullets-1)){swiper.pagination.dynamicBulletIndex=params.dynamicMainBullets-1;}else if(swiper.pagination.dynamicBulletIndex<0){swiper.pagination.dynamicBulletIndex=0;}} firstIndex=current-swiper.pagination.dynamicBulletIndex;lastIndex=firstIndex+(Math.min(bullets.length,params.dynamicMainBullets)-1);midIndex=(lastIndex+firstIndex)/2;} bullets.removeClass(((params.bulletActiveClass)+" "+(params.bulletActiveClass)+"-next "+(params.bulletActiveClass)+"-next-next "+(params.bulletActiveClass)+"-prev "+(params.bulletActiveClass)+"-prev-prev "+(params.bulletActiveClass)+"-main"));if($el.length>1){bullets.each(function(index,bullet){var $bullet=$(bullet);var bulletIndex=$bullet.index();if(bulletIndex===current){$bullet.addClass(params.bulletActiveClass);} if(params.dynamicBullets){if(bulletIndex>=firstIndex&&bulletIndex<=lastIndex){$bullet.addClass(((params.bulletActiveClass)+"-main"));} if(bulletIndex===firstIndex){$bullet.prev().addClass(((params.bulletActiveClass)+"-prev")).prev().addClass(((params.bulletActiveClass)+"-prev-prev"));} if(bulletIndex===lastIndex){$bullet.next().addClass(((params.bulletActiveClass)+"-next")).next().addClass(((params.bulletActiveClass)+"-next-next"));}}});}else{var $bullet=bullets.eq(current);$bullet.addClass(params.bulletActiveClass);if(params.dynamicBullets){var $firstDisplayedBullet=bullets.eq(firstIndex);var $lastDisplayedBullet=bullets.eq(lastIndex);for(var i=firstIndex;i<=lastIndex;i+=1){bullets.eq(i).addClass(((params.bulletActiveClass)+"-main"));} $firstDisplayedBullet.prev().addClass(((params.bulletActiveClass)+"-prev")).prev().addClass(((params.bulletActiveClass)+"-prev-prev"));$lastDisplayedBullet.next().addClass(((params.bulletActiveClass)+"-next")).next().addClass(((params.bulletActiveClass)+"-next-next"));}} if(params.dynamicBullets){var dynamicBulletsLength=Math.min(bullets.length,params.dynamicMainBullets+4);var bulletsOffset=(((swiper.pagination.bulletSize*dynamicBulletsLength)-(swiper.pagination.bulletSize))/2)-(midIndex*swiper.pagination.bulletSize);var offsetProp=rtl?'right':'left';bullets.css(swiper.isHorizontal()?offsetProp:'top',(bulletsOffset+"px"));}} if(params.type==='fraction'){$el.find(("."+(params.currentClass))).text(params.formatFractionCurrent(current+1));$el.find(("."+(params.totalClass))).text(params.formatFractionTotal(total));} if(params.type==='progressbar'){var progressbarDirection;if(params.progressbarOpposite){progressbarDirection=swiper.isHorizontal()?'vertical':'horizontal';}else{progressbarDirection=swiper.isHorizontal()?'horizontal':'vertical';} var scale=(current+1)/total;var scaleX=1;var scaleY=1;if(progressbarDirection==='horizontal'){scaleX=scale;}else{scaleY=scale;} $el.find(("."+(params.progressbarFillClass))).transform(("translate3d(0,0,0) scaleX("+scaleX+") scaleY("+scaleY+")")).transition(swiper.params.speed);} if(params.type==='custom'&¶ms.renderCustom){$el.html(params.renderCustom(swiper,current+1,total));swiper.emit('paginationRender',swiper,$el[0]);}else{swiper.emit('paginationUpdate',swiper,$el[0]);} $el[swiper.params.watchOverflow&&swiper.isLocked?'addClass':'removeClass'](params.lockClass);},render:function render(){var swiper=this;var params=swiper.params.pagination;if(!params.el||!swiper.pagination.el||!swiper.pagination.$el||swiper.pagination.$el.length===0){return;} var slidesLength=swiper.virtual&&swiper.params.virtual.enabled?swiper.virtual.slides.length:swiper.slides.length;var $el=swiper.pagination.$el;var paginationHTML='';if(params.type==='bullets'){var numberOfBullets=swiper.params.loop?Math.ceil((slidesLength-(swiper.loopedSlides*2))/swiper.params.slidesPerGroup):swiper.snapGrid.length;for(var i=0;i";}} $el.html(paginationHTML);swiper.pagination.bullets=$el.find(("."+(params.bulletClass)));} if(params.type==='fraction'){if(params.renderFraction){paginationHTML=params.renderFraction.call(swiper,params.currentClass,params.totalClass);}else{paginationHTML="" +' / ' +"";} $el.html(paginationHTML);} if(params.type==='progressbar'){if(params.renderProgressbar){paginationHTML=params.renderProgressbar.call(swiper,params.progressbarFillClass);}else{paginationHTML="";} $el.html(paginationHTML);} if(params.type!=='custom'){swiper.emit('paginationRender',swiper.pagination.$el[0]);}},init:function init(){var swiper=this;var params=swiper.params.pagination;if(!params.el){return;} var $el=$(params.el);if($el.length===0){return;} if(swiper.params.uniqueNavElements&&typeof params.el==='string'&&$el.length>1&&swiper.$el.find(params.el).length===1){$el=swiper.$el.find(params.el);} if(params.type==='bullets'&¶ms.clickable){$el.addClass(params.clickableClass);} $el.addClass(params.modifierClass+params.type);if(params.type==='bullets'&¶ms.dynamicBullets){$el.addClass((""+(params.modifierClass)+(params.type)+"-dynamic"));swiper.pagination.dynamicBulletIndex=0;if(params.dynamicMainBullets<1){params.dynamicMainBullets=1;}} if(params.type==='progressbar'&¶ms.progressbarOpposite){$el.addClass(params.progressbarOppositeClass);} if(params.clickable){$el.on('click',("."+(params.bulletClass)),function onClick(e){e.preventDefault();var index=$(this).index()*swiper.params.slidesPerGroup;if(swiper.params.loop){index+=swiper.loopedSlides;} swiper.slideTo(index);});} Utils.extend(swiper.pagination,{$el:$el,el:$el[0],});},destroy:function destroy(){var swiper=this;var params=swiper.params.pagination;if(!params.el||!swiper.pagination.el||!swiper.pagination.$el||swiper.pagination.$el.length===0){return;} var $el=swiper.pagination.$el;$el.removeClass(params.hiddenClass);$el.removeClass(params.modifierClass+params.type);if(swiper.pagination.bullets){swiper.pagination.bullets.removeClass(params.bulletActiveClass);} if(params.clickable){$el.off('click',("."+(params.bulletClass)));}},};var Pagination$1={name:'pagination',params:{pagination:{el:null,bulletElement:'span',clickable:false,hideOnClick:false,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:false,type:'bullets',dynamicBullets:false,dynamicMainBullets:1,formatFractionCurrent:function(number){return number;},formatFractionTotal:function(number){return number;},bulletClass:'swiper-pagination-bullet',bulletActiveClass:'swiper-pagination-bullet-active',modifierClass:'swiper-pagination-',currentClass:'swiper-pagination-current',totalClass:'swiper-pagination-total',hiddenClass:'swiper-pagination-hidden',progressbarFillClass:'swiper-pagination-progressbar-fill',progressbarOppositeClass:'swiper-pagination-progressbar-opposite',clickableClass:'swiper-pagination-clickable',lockClass:'swiper-pagination-lock',},},create:function create(){var swiper=this;Utils.extend(swiper,{pagination:{init:Pagination.init.bind(swiper),render:Pagination.render.bind(swiper),update:Pagination.update.bind(swiper),destroy:Pagination.destroy.bind(swiper),dynamicBulletIndex:0,},});},on:{init:function init(){var swiper=this;swiper.pagination.init();swiper.pagination.render();swiper.pagination.update();},activeIndexChange:function activeIndexChange(){var swiper=this;if(swiper.params.loop){swiper.pagination.update();}else if(typeof swiper.snapIndex==='undefined'){swiper.pagination.update();}},snapIndexChange:function snapIndexChange(){var swiper=this;if(!swiper.params.loop){swiper.pagination.update();}},slidesLengthChange:function slidesLengthChange(){var swiper=this;if(swiper.params.loop){swiper.pagination.render();swiper.pagination.update();}},snapGridLengthChange:function snapGridLengthChange(){var swiper=this;if(!swiper.params.loop){swiper.pagination.render();swiper.pagination.update();}},destroy:function destroy(){var swiper=this;swiper.pagination.destroy();},click:function click(e){var swiper=this;if(swiper.params.pagination.el&&swiper.params.pagination.hideOnClick&&swiper.pagination.$el.length>0&&!$(e.target).hasClass(swiper.params.pagination.bulletClass)){swiper.pagination.$el.toggleClass(swiper.params.pagination.hiddenClass);}},},};var Scrollbar={setTranslate:function setTranslate(){var swiper=this;if(!swiper.params.scrollbar.el||!swiper.scrollbar.el){return;} var scrollbar=swiper.scrollbar;var rtl=swiper.rtlTranslate;var progress=swiper.progress;var dragSize=scrollbar.dragSize;var trackSize=scrollbar.trackSize;var $dragEl=scrollbar.$dragEl;var $el=scrollbar.$el;var params=swiper.params.scrollbar;var newSize=dragSize;var newPos=(trackSize-dragSize)*progress;if(rtl){newPos=-newPos;if(newPos>0){newSize=dragSize-newPos;newPos=0;}else if(-newPos+dragSize>trackSize){newSize=trackSize+newPos;}}else if(newPos<0){newSize=dragSize+newPos;newPos=0;}else if(newPos+dragSize>trackSize){newSize=trackSize-newPos;} if(swiper.isHorizontal()){if(Support.transforms3d){$dragEl.transform(("translate3d("+newPos+"px, 0, 0)"));}else{$dragEl.transform(("translateX("+newPos+"px)"));} $dragEl[0].style.width=newSize+"px";}else{if(Support.transforms3d){$dragEl.transform(("translate3d(0px, "+newPos+"px, 0)"));}else{$dragEl.transform(("translateY("+newPos+"px)"));} $dragEl[0].style.height=newSize+"px";} if(params.hide){clearTimeout(swiper.scrollbar.timeout);$el[0].style.opacity=1;swiper.scrollbar.timeout=setTimeout(function(){$el[0].style.opacity=0;$el.transition(400);},1000);}},setTransition:function setTransition(duration){var swiper=this;if(!swiper.params.scrollbar.el||!swiper.scrollbar.el){return;} swiper.scrollbar.$dragEl.transition(duration);},updateSize:function updateSize(){var swiper=this;if(!swiper.params.scrollbar.el||!swiper.scrollbar.el){return;} var scrollbar=swiper.scrollbar;var $dragEl=scrollbar.$dragEl;var $el=scrollbar.$el;$dragEl[0].style.width='';$dragEl[0].style.height='';var trackSize=swiper.isHorizontal()?$el[0].offsetWidth:$el[0].offsetHeight;var divider=swiper.size/swiper.virtualSize;var moveDivider=divider*(trackSize/swiper.size);var dragSize;if(swiper.params.scrollbar.dragSize==='auto'){dragSize=trackSize*divider;}else{dragSize=parseInt(swiper.params.scrollbar.dragSize,10);} if(swiper.isHorizontal()){$dragEl[0].style.width=dragSize+"px";}else{$dragEl[0].style.height=dragSize+"px";} if(divider>=1){$el[0].style.display='none';}else{$el[0].style.display='';} if(swiper.params.scrollbarHide){$el[0].style.opacity=0;} Utils.extend(scrollbar,{trackSize:trackSize,divider:divider,moveDivider:moveDivider,dragSize:dragSize,});scrollbar.$el[swiper.params.watchOverflow&&swiper.isLocked?'addClass':'removeClass'](swiper.params.scrollbar.lockClass);},setDragPosition:function setDragPosition(e){var swiper=this;var scrollbar=swiper.scrollbar;var rtl=swiper.rtlTranslate;var $el=scrollbar.$el;var dragSize=scrollbar.dragSize;var trackSize=scrollbar.trackSize;var pointerPosition;if(swiper.isHorizontal()){pointerPosition=((e.type==='touchstart'||e.type==='touchmove')?e.targetTouches[0].pageX:e.pageX||e.clientX);}else{pointerPosition=((e.type==='touchstart'||e.type==='touchmove')?e.targetTouches[0].pageY:e.pageY||e.clientY);} var positionRatio;positionRatio=((pointerPosition)-$el.offset()[swiper.isHorizontal()?'left':'top']-(dragSize/2))/(trackSize-dragSize);positionRatio=Math.max(Math.min(positionRatio,1),0);if(rtl){positionRatio=1-positionRatio;} var position=swiper.minTranslate()+((swiper.maxTranslate()-swiper.minTranslate())*positionRatio);swiper.updateProgress(position);swiper.setTranslate(position);swiper.updateActiveIndex();swiper.updateSlidesClasses();},onDragStart:function onDragStart(e){var swiper=this;var params=swiper.params.scrollbar;var scrollbar=swiper.scrollbar;var $wrapperEl=swiper.$wrapperEl;var $el=scrollbar.$el;var $dragEl=scrollbar.$dragEl;swiper.scrollbar.isTouched=true;e.preventDefault();e.stopPropagation();$wrapperEl.transition(100);$dragEl.transition(100);scrollbar.setDragPosition(e);clearTimeout(swiper.scrollbar.dragTimeout);$el.transition(0);if(params.hide){$el.css('opacity',1);} swiper.emit('scrollbarDragStart',e);},onDragMove:function onDragMove(e){var swiper=this;var scrollbar=swiper.scrollbar;var $wrapperEl=swiper.$wrapperEl;var $el=scrollbar.$el;var $dragEl=scrollbar.$dragEl;if(!swiper.scrollbar.isTouched){return;} if(e.preventDefault){e.preventDefault();} else{e.returnValue=false;} scrollbar.setDragPosition(e);$wrapperEl.transition(0);$el.transition(0);$dragEl.transition(0);swiper.emit('scrollbarDragMove',e);},onDragEnd:function onDragEnd(e){var swiper=this;var params=swiper.params.scrollbar;var scrollbar=swiper.scrollbar;var $el=scrollbar.$el;if(!swiper.scrollbar.isTouched){return;} swiper.scrollbar.isTouched=false;if(params.hide){clearTimeout(swiper.scrollbar.dragTimeout);swiper.scrollbar.dragTimeout=Utils.nextTick(function(){$el.css('opacity',0);$el.transition(400);},1000);} swiper.emit('scrollbarDragEnd',e);if(params.snapOnRelease){swiper.slideToClosest();}},enableDraggable:function enableDraggable(){var swiper=this;if(!swiper.params.scrollbar.el){return;} var scrollbar=swiper.scrollbar;var touchEvents=swiper.touchEvents;var touchEventsDesktop=swiper.touchEventsDesktop;var params=swiper.params;var $el=scrollbar.$el;var target=$el[0];var activeListener=Support.passiveListener&¶ms.passiveListeners?{passive:false,capture:false}:false;var passiveListener=Support.passiveListener&¶ms.passiveListeners?{passive:true,capture:false}:false;if(!Support.touch&&(Support.pointerEvents||Support.prefixedPointerEvents)){target.addEventListener(touchEventsDesktop.start,swiper.scrollbar.onDragStart,activeListener);doc.addEventListener(touchEventsDesktop.move,swiper.scrollbar.onDragMove,activeListener);doc.addEventListener(touchEventsDesktop.end,swiper.scrollbar.onDragEnd,passiveListener);}else{if(Support.touch){target.addEventListener(touchEvents.start,swiper.scrollbar.onDragStart,activeListener);target.addEventListener(touchEvents.move,swiper.scrollbar.onDragMove,activeListener);target.addEventListener(touchEvents.end,swiper.scrollbar.onDragEnd,passiveListener);} if((params.simulateTouch&&!Device.ios&&!Device.android)||(params.simulateTouch&&!Support.touch&&Device.ios)){target.addEventListener('mousedown',swiper.scrollbar.onDragStart,activeListener);doc.addEventListener('mousemove',swiper.scrollbar.onDragMove,activeListener);doc.addEventListener('mouseup',swiper.scrollbar.onDragEnd,passiveListener);}}},disableDraggable:function disableDraggable(){var swiper=this;if(!swiper.params.scrollbar.el){return;} var scrollbar=swiper.scrollbar;var touchEvents=swiper.touchEvents;var touchEventsDesktop=swiper.touchEventsDesktop;var params=swiper.params;var $el=scrollbar.$el;var target=$el[0];var activeListener=Support.passiveListener&¶ms.passiveListeners?{passive:false,capture:false}:false;var passiveListener=Support.passiveListener&¶ms.passiveListeners?{passive:true,capture:false}:false;if(!Support.touch&&(Support.pointerEvents||Support.prefixedPointerEvents)){target.removeEventListener(touchEventsDesktop.start,swiper.scrollbar.onDragStart,activeListener);doc.removeEventListener(touchEventsDesktop.move,swiper.scrollbar.onDragMove,activeListener);doc.removeEventListener(touchEventsDesktop.end,swiper.scrollbar.onDragEnd,passiveListener);}else{if(Support.touch){target.removeEventListener(touchEvents.start,swiper.scrollbar.onDragStart,activeListener);target.removeEventListener(touchEvents.move,swiper.scrollbar.onDragMove,activeListener);target.removeEventListener(touchEvents.end,swiper.scrollbar.onDragEnd,passiveListener);} if((params.simulateTouch&&!Device.ios&&!Device.android)||(params.simulateTouch&&!Support.touch&&Device.ios)){target.removeEventListener('mousedown',swiper.scrollbar.onDragStart,activeListener);doc.removeEventListener('mousemove',swiper.scrollbar.onDragMove,activeListener);doc.removeEventListener('mouseup',swiper.scrollbar.onDragEnd,passiveListener);}}},init:function init(){var swiper=this;if(!swiper.params.scrollbar.el){return;} var scrollbar=swiper.scrollbar;var $swiperEl=swiper.$el;var params=swiper.params.scrollbar;var $el=$(params.el);if(swiper.params.uniqueNavElements&&typeof params.el==='string'&&$el.length>1&&$swiperEl.find(params.el).length===1){$el=$swiperEl.find(params.el);} var $dragEl=$el.find(("."+(swiper.params.scrollbar.dragClass)));if($dragEl.length===0){$dragEl=$(("
"));$el.append($dragEl);} Utils.extend(scrollbar,{$el:$el,el:$el[0],$dragEl:$dragEl,dragEl:$dragEl[0],});if(params.draggable){scrollbar.enableDraggable();}},destroy:function destroy(){var swiper=this;swiper.scrollbar.disableDraggable();},};var Scrollbar$1={name:'scrollbar',params:{scrollbar:{el:null,dragSize:'auto',hide:false,draggable:false,snapOnRelease:true,lockClass:'swiper-scrollbar-lock',dragClass:'swiper-scrollbar-drag',},},create:function create(){var swiper=this;Utils.extend(swiper,{scrollbar:{init:Scrollbar.init.bind(swiper),destroy:Scrollbar.destroy.bind(swiper),updateSize:Scrollbar.updateSize.bind(swiper),setTranslate:Scrollbar.setTranslate.bind(swiper),setTransition:Scrollbar.setTransition.bind(swiper),enableDraggable:Scrollbar.enableDraggable.bind(swiper),disableDraggable:Scrollbar.disableDraggable.bind(swiper),setDragPosition:Scrollbar.setDragPosition.bind(swiper),onDragStart:Scrollbar.onDragStart.bind(swiper),onDragMove:Scrollbar.onDragMove.bind(swiper),onDragEnd:Scrollbar.onDragEnd.bind(swiper),isTouched:false,timeout:null,dragTimeout:null,},});},on:{init:function init(){var swiper=this;swiper.scrollbar.init();swiper.scrollbar.updateSize();swiper.scrollbar.setTranslate();},update:function update(){var swiper=this;swiper.scrollbar.updateSize();},resize:function resize(){var swiper=this;swiper.scrollbar.updateSize();},observerUpdate:function observerUpdate(){var swiper=this;swiper.scrollbar.updateSize();},setTranslate:function setTranslate(){var swiper=this;swiper.scrollbar.setTranslate();},setTransition:function setTransition(duration){var swiper=this;swiper.scrollbar.setTransition(duration);},destroy:function destroy(){var swiper=this;swiper.scrollbar.destroy();},},};var Parallax={setTransform:function setTransform(el,progress){var swiper=this;var rtl=swiper.rtl;var $el=$(el);var rtlFactor=rtl?-1:1;var p=$el.attr('data-swiper-parallax')||'0';var x=$el.attr('data-swiper-parallax-x');var y=$el.attr('data-swiper-parallax-y');var scale=$el.attr('data-swiper-parallax-scale');var opacity=$el.attr('data-swiper-parallax-opacity');if(x||y){x=x||'0';y=y||'0';}else if(swiper.isHorizontal()){x=p;y='0';}else{y=p;x='0';} if((x).indexOf('%')>=0){x=(parseInt(x,10)*progress*rtlFactor)+"%";}else{x=(x*progress*rtlFactor)+"px";} if((y).indexOf('%')>=0){y=(parseInt(y,10)*progress)+"%";}else{y=(y*progress)+"px";} if(typeof opacity!=='undefined'&&opacity!==null){var currentOpacity=opacity-((opacity-1)*(1-Math.abs(progress)));$el[0].style.opacity=currentOpacity;} if(typeof scale==='undefined'||scale===null){$el.transform(("translate3d("+x+", "+y+", 0px)"));}else{var currentScale=scale-((scale-1)*(1-Math.abs(progress)));$el.transform(("translate3d("+x+", "+y+", 0px) scale("+currentScale+")"));}},setTranslate:function setTranslate(){var swiper=this;var $el=swiper.$el;var slides=swiper.slides;var progress=swiper.progress;var snapGrid=swiper.snapGrid;$el.children('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]').each(function(index,el){swiper.parallax.setTransform(el,progress);});slides.each(function(slideIndex,slideEl){var slideProgress=slideEl.progress;if(swiper.params.slidesPerGroup>1&&swiper.params.slidesPerView!=='auto'){slideProgress+=Math.ceil(slideIndex/2)-(progress*(snapGrid.length-1));} slideProgress=Math.min(Math.max(slideProgress,-1),1);$(slideEl).find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]').each(function(index,el){swiper.parallax.setTransform(el,slideProgress);});});},setTransition:function setTransition(duration){if(duration===void 0)duration=this.params.speed;var swiper=this;var $el=swiper.$el;$el.find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]').each(function(index,parallaxEl){var $parallaxEl=$(parallaxEl);var parallaxDuration=parseInt($parallaxEl.attr('data-swiper-parallax-duration'),10)||duration;if(duration===0){parallaxDuration=0;} $parallaxEl.transition(parallaxDuration);});},};var Parallax$1={name:'parallax',params:{parallax:{enabled:false,},},create:function create(){var swiper=this;Utils.extend(swiper,{parallax:{setTransform:Parallax.setTransform.bind(swiper),setTranslate:Parallax.setTranslate.bind(swiper),setTransition:Parallax.setTransition.bind(swiper),},});},on:{beforeInit:function beforeInit(){var swiper=this;if(!swiper.params.parallax.enabled){return;} swiper.params.watchSlidesProgress=true;},init:function init(){var swiper=this;if(!swiper.params.parallax){return;} swiper.parallax.setTranslate();},setTranslate:function setTranslate(){var swiper=this;if(!swiper.params.parallax){return;} swiper.parallax.setTranslate();},setTransition:function setTransition(duration){var swiper=this;if(!swiper.params.parallax){return;} swiper.parallax.setTransition(duration);},},};var Zoom={getDistanceBetweenTouches:function getDistanceBetweenTouches(e){if(e.targetTouches.length<2){return 1;} var x1=e.targetTouches[0].pageX;var y1=e.targetTouches[0].pageY;var x2=e.targetTouches[1].pageX;var y2=e.targetTouches[1].pageY;var distance=Math.sqrt((Math.pow((x2-x1),2))+(Math.pow((y2-y1),2)));return distance;},onGestureStart:function onGestureStart(e){var swiper=this;var params=swiper.params.zoom;var zoom=swiper.zoom;var gesture=zoom.gesture;zoom.fakeGestureTouched=false;zoom.fakeGestureMoved=false;if(!Support.gestures){if(e.type!=='touchstart'||(e.type==='touchstart'&&e.targetTouches.length<2)){return;} zoom.fakeGestureTouched=true;gesture.scaleStart=Zoom.getDistanceBetweenTouches(e);} if(!gesture.$slideEl||!gesture.$slideEl.length){gesture.$slideEl=$(e.target).closest('.swiper-slide');if(gesture.$slideEl.length===0){gesture.$slideEl=swiper.slides.eq(swiper.activeIndex);} gesture.$imageEl=gesture.$slideEl.find('img, svg, canvas');gesture.$imageWrapEl=gesture.$imageEl.parent(("."+(params.containerClass)));gesture.maxRatio=gesture.$imageWrapEl.attr('data-swiper-zoom')||params.maxRatio;if(gesture.$imageWrapEl.length===0){gesture.$imageEl=undefined;return;}} gesture.$imageEl.transition(0);swiper.zoom.isScaling=true;},onGestureChange:function onGestureChange(e){var swiper=this;var params=swiper.params.zoom;var zoom=swiper.zoom;var gesture=zoom.gesture;if(!Support.gestures){if(e.type!=='touchmove'||(e.type==='touchmove'&&e.targetTouches.length<2)){return;} zoom.fakeGestureMoved=true;gesture.scaleMove=Zoom.getDistanceBetweenTouches(e);} if(!gesture.$imageEl||gesture.$imageEl.length===0){return;} if(Support.gestures){swiper.zoom.scale=e.scale*zoom.currentScale;}else{zoom.scale=(gesture.scaleMove/gesture.scaleStart)*zoom.currentScale;} if(zoom.scale>gesture.maxRatio){zoom.scale=(gesture.maxRatio-1)+(Math.pow(((zoom.scale-gesture.maxRatio)+1),0.5));} if(zoom.scaleimage.touchesStart.x))){image.isTouched=false;return;}if(!swiper.isHorizontal()&&((Math.floor(image.minY)===Math.floor(image.startY)&&image.touchesCurrent.yimage.touchesStart.y))){image.isTouched=false;return;}} e.preventDefault();e.stopPropagation();image.isMoved=true;image.currentX=(image.touchesCurrent.x-image.touchesStart.x)+image.startX;image.currentY=(image.touchesCurrent.y-image.touchesStart.y)+image.startY;if(image.currentXimage.maxX){image.currentX=(image.maxX-1)+(Math.pow(((image.currentX-image.maxX)+1),0.8));} if(image.currentYimage.maxY){image.currentY=(image.maxY-1)+(Math.pow(((image.currentY-image.maxY)+1),0.8));} if(!velocity.prevPositionX){velocity.prevPositionX=image.touchesCurrent.x;} if(!velocity.prevPositionY){velocity.prevPositionY=image.touchesCurrent.y;} if(!velocity.prevTime){velocity.prevTime=Date.now();} velocity.x=(image.touchesCurrent.x-velocity.prevPositionX)/(Date.now()-velocity.prevTime)/2;velocity.y=(image.touchesCurrent.y-velocity.prevPositionY)/(Date.now()-velocity.prevTime)/2;if(Math.abs(image.touchesCurrent.x-velocity.prevPositionX)<2){velocity.x=0;} if(Math.abs(image.touchesCurrent.y-velocity.prevPositionY)<2){velocity.y=0;} velocity.prevPositionX=image.touchesCurrent.x;velocity.prevPositionY=image.touchesCurrent.y;velocity.prevTime=Date.now();gesture.$imageWrapEl.transform(("translate3d("+(image.currentX)+"px, "+(image.currentY)+"px,0)"));},onTouchEnd:function onTouchEnd(){var swiper=this;var zoom=swiper.zoom;var gesture=zoom.gesture;var image=zoom.image;var velocity=zoom.velocity;if(!gesture.$imageEl||gesture.$imageEl.length===0){return;} if(!image.isTouched||!image.isMoved){image.isTouched=false;image.isMoved=false;return;} image.isTouched=false;image.isMoved=false;var momentumDurationX=300;var momentumDurationY=300;var momentumDistanceX=velocity.x*momentumDurationX;var newPositionX=image.currentX+momentumDistanceX;var momentumDistanceY=velocity.y*momentumDurationY;var newPositionY=image.currentY+momentumDistanceY;if(velocity.x!==0){momentumDurationX=Math.abs((newPositionX-image.currentX)/velocity.x);} if(velocity.y!==0){momentumDurationY=Math.abs((newPositionY-image.currentY)/velocity.y);} var momentumDuration=Math.max(momentumDurationX,momentumDurationY);image.currentX=newPositionX;image.currentY=newPositionY;var scaledWidth=image.width*zoom.scale;var scaledHeight=image.height*zoom.scale;image.minX=Math.min(((gesture.slideWidth/2)-(scaledWidth/2)),0);image.maxX=-image.minX;image.minY=Math.min(((gesture.slideHeight/2)-(scaledHeight/2)),0);image.maxY=-image.minY;image.currentX=Math.max(Math.min(image.currentX,image.maxX),image.minX);image.currentY=Math.max(Math.min(image.currentY,image.maxY),image.minY);gesture.$imageWrapEl.transition(momentumDuration).transform(("translate3d("+(image.currentX)+"px, "+(image.currentY)+"px,0)"));},onTransitionEnd:function onTransitionEnd(){var swiper=this;var zoom=swiper.zoom;var gesture=zoom.gesture;if(gesture.$slideEl&&swiper.previousIndex!==swiper.activeIndex){gesture.$imageEl.transform('translate3d(0,0,0) scale(1)');gesture.$imageWrapEl.transform('translate3d(0,0,0)');gesture.$slideEl=undefined;gesture.$imageEl=undefined;gesture.$imageWrapEl=undefined;zoom.scale=1;zoom.currentScale=1;}},toggle:function toggle(e){var swiper=this;var zoom=swiper.zoom;if(zoom.scale&&zoom.scale!==1){zoom.out();}else{zoom.in(e);}},in:function in$1(e){var swiper=this;var zoom=swiper.zoom;var params=swiper.params.zoom;var gesture=zoom.gesture;var image=zoom.image;if(!gesture.$slideEl){gesture.$slideEl=swiper.clickedSlide?$(swiper.clickedSlide):swiper.slides.eq(swiper.activeIndex);gesture.$imageEl=gesture.$slideEl.find('img, svg, canvas');gesture.$imageWrapEl=gesture.$imageEl.parent(("."+(params.containerClass)));} if(!gesture.$imageEl||gesture.$imageEl.length===0){return;} gesture.$slideEl.addClass((""+(params.zoomedSlideClass)));var touchX;var touchY;var offsetX;var offsetY;var diffX;var diffY;var translateX;var translateY;var imageWidth;var imageHeight;var scaledWidth;var scaledHeight;var translateMinX;var translateMinY;var translateMaxX;var translateMaxY;var slideWidth;var slideHeight;if(typeof image.touchesStart.x==='undefined'&&e){touchX=e.type==='touchend'?e.changedTouches[0].pageX:e.pageX;touchY=e.type==='touchend'?e.changedTouches[0].pageY:e.pageY;}else{touchX=image.touchesStart.x;touchY=image.touchesStart.y;} zoom.scale=gesture.$imageWrapEl.attr('data-swiper-zoom')||params.maxRatio;zoom.currentScale=gesture.$imageWrapEl.attr('data-swiper-zoom')||params.maxRatio;if(e){slideWidth=gesture.$slideEl[0].offsetWidth;slideHeight=gesture.$slideEl[0].offsetHeight;offsetX=gesture.$slideEl.offset().left;offsetY=gesture.$slideEl.offset().top;diffX=(offsetX+(slideWidth/2))-touchX;diffY=(offsetY+(slideHeight/2))-touchY;imageWidth=gesture.$imageEl[0].offsetWidth;imageHeight=gesture.$imageEl[0].offsetHeight;scaledWidth=imageWidth*zoom.scale;scaledHeight=imageHeight*zoom.scale;translateMinX=Math.min(((slideWidth/2)-(scaledWidth/2)),0);translateMinY=Math.min(((slideHeight/2)-(scaledHeight/2)),0);translateMaxX=-translateMinX;translateMaxY=-translateMinY;translateX=diffX*zoom.scale;translateY=diffY*zoom.scale;if(translateXtranslateMaxX){translateX=translateMaxX;} if(translateYtranslateMaxY){translateY=translateMaxY;}}else{translateX=0;translateY=0;} gesture.$imageWrapEl.transition(300).transform(("translate3d("+translateX+"px, "+translateY+"px,0)"));gesture.$imageEl.transition(300).transform(("translate3d(0,0,0) scale("+(zoom.scale)+")"));},out:function out(){var swiper=this;var zoom=swiper.zoom;var params=swiper.params.zoom;var gesture=zoom.gesture;if(!gesture.$slideEl){gesture.$slideEl=swiper.clickedSlide?$(swiper.clickedSlide):swiper.slides.eq(swiper.activeIndex);gesture.$imageEl=gesture.$slideEl.find('img, svg, canvas');gesture.$imageWrapEl=gesture.$imageEl.parent(("."+(params.containerClass)));} if(!gesture.$imageEl||gesture.$imageEl.length===0){return;} zoom.scale=1;zoom.currentScale=1;gesture.$imageWrapEl.transition(300).transform('translate3d(0,0,0)');gesture.$imageEl.transition(300).transform('translate3d(0,0,0) scale(1)');gesture.$slideEl.removeClass((""+(params.zoomedSlideClass)));gesture.$slideEl=undefined;},enable:function enable(){var swiper=this;var zoom=swiper.zoom;if(zoom.enabled){return;} zoom.enabled=true;var passiveListener=swiper.touchEvents.start==='touchstart'&&Support.passiveListener&&swiper.params.passiveListeners?{passive:true,capture:false}:false;if(Support.gestures){swiper.$wrapperEl.on('gesturestart','.swiper-slide',zoom.onGestureStart,passiveListener);swiper.$wrapperEl.on('gesturechange','.swiper-slide',zoom.onGestureChange,passiveListener);swiper.$wrapperEl.on('gestureend','.swiper-slide',zoom.onGestureEnd,passiveListener);}else if(swiper.touchEvents.start==='touchstart'){swiper.$wrapperEl.on(swiper.touchEvents.start,'.swiper-slide',zoom.onGestureStart,passiveListener);swiper.$wrapperEl.on(swiper.touchEvents.move,'.swiper-slide',zoom.onGestureChange,passiveListener);swiper.$wrapperEl.on(swiper.touchEvents.end,'.swiper-slide',zoom.onGestureEnd,passiveListener);} swiper.$wrapperEl.on(swiper.touchEvents.move,("."+(swiper.params.zoom.containerClass)),zoom.onTouchMove);},disable:function disable(){var swiper=this;var zoom=swiper.zoom;if(!zoom.enabled){return;} swiper.zoom.enabled=false;var passiveListener=swiper.touchEvents.start==='touchstart'&&Support.passiveListener&&swiper.params.passiveListeners?{passive:true,capture:false}:false;if(Support.gestures){swiper.$wrapperEl.off('gesturestart','.swiper-slide',zoom.onGestureStart,passiveListener);swiper.$wrapperEl.off('gesturechange','.swiper-slide',zoom.onGestureChange,passiveListener);swiper.$wrapperEl.off('gestureend','.swiper-slide',zoom.onGestureEnd,passiveListener);}else if(swiper.touchEvents.start==='touchstart'){swiper.$wrapperEl.off(swiper.touchEvents.start,'.swiper-slide',zoom.onGestureStart,passiveListener);swiper.$wrapperEl.off(swiper.touchEvents.move,'.swiper-slide',zoom.onGestureChange,passiveListener);swiper.$wrapperEl.off(swiper.touchEvents.end,'.swiper-slide',zoom.onGestureEnd,passiveListener);} swiper.$wrapperEl.off(swiper.touchEvents.move,("."+(swiper.params.zoom.containerClass)),zoom.onTouchMove);},};var Zoom$1={name:'zoom',params:{zoom:{enabled:false,maxRatio:3,minRatio:1,toggle:true,containerClass:'swiper-zoom-container',zoomedSlideClass:'swiper-slide-zoomed',},},create:function create(){var swiper=this;var zoom={enabled:false,scale:1,currentScale:1,isScaling:false,gesture:{$slideEl:undefined,slideWidth:undefined,slideHeight:undefined,$imageEl:undefined,$imageWrapEl:undefined,maxRatio:3,},image:{isTouched:undefined,isMoved:undefined,currentX:undefined,currentY:undefined,minX:undefined,minY:undefined,maxX:undefined,maxY:undefined,width:undefined,height:undefined,startX:undefined,startY:undefined,touchesStart:{},touchesCurrent:{},},velocity:{x:undefined,y:undefined,prevPositionX:undefined,prevPositionY:undefined,prevTime:undefined,},};('onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out').split(' ').forEach(function(methodName){zoom[methodName]=Zoom[methodName].bind(swiper);});Utils.extend(swiper,{zoom:zoom,});},on:{init:function init(){var swiper=this;if(swiper.params.zoom.enabled){swiper.zoom.enable();}},destroy:function destroy(){var swiper=this;swiper.zoom.disable();},touchStart:function touchStart(e){var swiper=this;if(!swiper.zoom.enabled){return;} swiper.zoom.onTouchStart(e);},touchEnd:function touchEnd(e){var swiper=this;if(!swiper.zoom.enabled){return;} swiper.zoom.onTouchEnd(e);},doubleTap:function doubleTap(e){var swiper=this;if(swiper.params.zoom.enabled&&swiper.zoom.enabled&&swiper.params.zoom.toggle){swiper.zoom.toggle(e);}},transitionEnd:function transitionEnd(){var swiper=this;if(swiper.zoom.enabled&&swiper.params.zoom.enabled){swiper.zoom.onTransitionEnd();}},},};var Lazy={loadInSlide:function loadInSlide(index,loadInDuplicate){if(loadInDuplicate===void 0)loadInDuplicate=true;var swiper=this;var params=swiper.params.lazy;if(typeof index==='undefined'){return;} if(swiper.slides.length===0){return;} var isVirtual=swiper.virtual&&swiper.params.virtual.enabled;var $slideEl=isVirtual?swiper.$wrapperEl.children(("."+(swiper.params.slideClass)+"[data-swiper-slide-index=\""+index+"\"]")):swiper.slides.eq(index);var $images=$slideEl.find(("."+(params.elementClass)+":not(."+(params.loadedClass)+"):not(."+(params.loadingClass)+")"));if($slideEl.hasClass(params.elementClass)&&!$slideEl.hasClass(params.loadedClass)&&!$slideEl.hasClass(params.loadingClass)){$images=$images.add($slideEl[0]);} if($images.length===0){return;} $images.each(function(imageIndex,imageEl){var $imageEl=$(imageEl);$imageEl.addClass(params.loadingClass);var background=$imageEl.attr('data-background');var src=$imageEl.attr('data-src');var srcset=$imageEl.attr('data-srcset');var sizes=$imageEl.attr('data-sizes');swiper.loadImage($imageEl[0],(src||background),srcset,sizes,false,function(){if(typeof swiper==='undefined'||swiper===null||!swiper||(swiper&&!swiper.params)||swiper.destroyed){return;} if(background){$imageEl.css('background-image',("url(\""+background+"\")"));$imageEl.removeAttr('data-background');}else{if(srcset){$imageEl.attr('srcset',srcset);$imageEl.removeAttr('data-srcset');} if(sizes){$imageEl.attr('sizes',sizes);$imageEl.removeAttr('data-sizes');} if(src){$imageEl.attr('src',src);$imageEl.removeAttr('data-src');}} $imageEl.addClass(params.loadedClass).removeClass(params.loadingClass);$slideEl.find(("."+(params.preloaderClass))).remove();if(swiper.params.loop&&loadInDuplicate){var slideOriginalIndex=$slideEl.attr('data-swiper-slide-index');if($slideEl.hasClass(swiper.params.slideDuplicateClass)){var originalSlide=swiper.$wrapperEl.children(("[data-swiper-slide-index=\""+slideOriginalIndex+"\"]:not(."+(swiper.params.slideDuplicateClass)+")"));swiper.lazy.loadInSlide(originalSlide.index(),false);}else{var duplicatedSlide=swiper.$wrapperEl.children(("."+(swiper.params.slideDuplicateClass)+"[data-swiper-slide-index=\""+slideOriginalIndex+"\"]"));swiper.lazy.loadInSlide(duplicatedSlide.index(),false);}} swiper.emit('lazyImageReady',$slideEl[0],$imageEl[0]);});swiper.emit('lazyImageLoad',$slideEl[0],$imageEl[0]);});},load:function load(){var swiper=this;var $wrapperEl=swiper.$wrapperEl;var swiperParams=swiper.params;var slides=swiper.slides;var activeIndex=swiper.activeIndex;var isVirtual=swiper.virtual&&swiperParams.virtual.enabled;var params=swiperParams.lazy;var slidesPerView=swiperParams.slidesPerView;if(slidesPerView==='auto'){slidesPerView=0;} function slideExist(index){if(isVirtual){if($wrapperEl.children(("."+(swiperParams.slideClass)+"[data-swiper-slide-index=\""+index+"\"]")).length){return true;}}else if(slides[index]){return true;} return false;} function slideIndex(slideEl){if(isVirtual){return $(slideEl).attr('data-swiper-slide-index');} return $(slideEl).index();} if(!swiper.lazy.initialImageLoaded){swiper.lazy.initialImageLoaded=true;} if(swiper.params.watchSlidesVisibility){$wrapperEl.children(("."+(swiperParams.slideVisibleClass))).each(function(elIndex,slideEl){var index=isVirtual?$(slideEl).attr('data-swiper-slide-index'):$(slideEl).index();swiper.lazy.loadInSlide(index);});}else if(slidesPerView>1){for(var i=activeIndex;i1||(params.loadPrevNextAmount&¶ms.loadPrevNextAmount>1)){var amount=params.loadPrevNextAmount;var spv=slidesPerView;var maxIndex=Math.min(activeIndex+spv+Math.max(amount,spv),slides.length);var minIndex=Math.max(activeIndex-Math.max(spv,amount),0);for(var i$1=activeIndex+slidesPerView;i$10){swiper.lazy.loadInSlide(slideIndex(nextSlide));} var prevSlide=$wrapperEl.children(("."+(swiperParams.slidePrevClass)));if(prevSlide.length>0){swiper.lazy.loadInSlide(slideIndex(prevSlide));}}}},};var Lazy$1={name:'lazy',params:{lazy:{enabled:false,loadPrevNext:false,loadPrevNextAmount:1,loadOnTransitionStart:false,elementClass:'swiper-lazy',loadingClass:'swiper-lazy-loading',loadedClass:'swiper-lazy-loaded',preloaderClass:'swiper-lazy-preloader',},},create:function create(){var swiper=this;Utils.extend(swiper,{lazy:{initialImageLoaded:false,load:Lazy.load.bind(swiper),loadInSlide:Lazy.loadInSlide.bind(swiper),},});},on:{beforeInit:function beforeInit(){var swiper=this;if(swiper.params.lazy.enabled&&swiper.params.preloadImages){swiper.params.preloadImages=false;}},init:function init(){var swiper=this;if(swiper.params.lazy.enabled&&!swiper.params.loop&&swiper.params.initialSlide===0){swiper.lazy.load();}},scroll:function scroll(){var swiper=this;if(swiper.params.freeMode&&!swiper.params.freeModeSticky){swiper.lazy.load();}},resize:function resize(){var swiper=this;if(swiper.params.lazy.enabled){swiper.lazy.load();}},scrollbarDragMove:function scrollbarDragMove(){var swiper=this;if(swiper.params.lazy.enabled){swiper.lazy.load();}},transitionStart:function transitionStart(){var swiper=this;if(swiper.params.lazy.enabled){if(swiper.params.lazy.loadOnTransitionStart||(!swiper.params.lazy.loadOnTransitionStart&&!swiper.lazy.initialImageLoaded)){swiper.lazy.load();}}},transitionEnd:function transitionEnd(){var swiper=this;if(swiper.params.lazy.enabled&&!swiper.params.lazy.loadOnTransitionStart){swiper.lazy.load();}},},};var Controller={LinearSpline:function LinearSpline(x,y){var binarySearch=(function search(){var maxIndex;var minIndex;var guess;return function(array,val){minIndex=-1;maxIndex=array.length;while(maxIndex-minIndex>1){guess=maxIndex+minIndex>>1;if(array[guess]<=val){minIndex=guess;}else{maxIndex=guess;}} return maxIndex;};}());this.x=x;this.y=y;this.lastIndex=x.length-1;var i1;var i3;this.interpolate=function interpolate(x2){if(!x2){return 0;} i3=binarySearch(this.x,x2);i1=i3-1;return(((x2-this.x[i1])*(this.y[i3]-this.y[i1]))/(this.x[i3]-this.x[i1]))+this.y[i1];};return this;},getInterpolateFunction:function getInterpolateFunction(c){var swiper=this;if(!swiper.controller.spline){swiper.controller.spline=swiper.params.loop?new Controller.LinearSpline(swiper.slidesGrid,c.slidesGrid):new Controller.LinearSpline(swiper.snapGrid,c.snapGrid);}},setTranslate:function setTranslate(setTranslate$1,byController){var swiper=this;var controlled=swiper.controller.control;var multiplier;var controlledTranslate;function setControlledTranslate(c){var translate=swiper.rtlTranslate?-swiper.translate:swiper.translate;if(swiper.params.controller.by==='slide'){swiper.controller.getInterpolateFunction(c);controlledTranslate=-swiper.controller.spline.interpolate(-translate);} if(!controlledTranslate||swiper.params.controller.by==='container'){multiplier=(c.maxTranslate()-c.minTranslate())/(swiper.maxTranslate()-swiper.minTranslate());controlledTranslate=((translate-swiper.minTranslate())*multiplier)+c.minTranslate();} if(swiper.params.controller.inverse){controlledTranslate=c.maxTranslate()-controlledTranslate;} c.updateProgress(controlledTranslate);c.setTranslate(controlledTranslate,swiper);c.updateActiveIndex();c.updateSlidesClasses();} if(Array.isArray(controlled)){for(var i=0;i0){if(swiper.isBeginning){swiper.a11y.disableEl($prevEl);}else{swiper.a11y.enableEl($prevEl);}} if($nextEl&&$nextEl.length>0){if(swiper.isEnd){swiper.a11y.disableEl($nextEl);}else{swiper.a11y.enableEl($nextEl);}}},updatePagination:function updatePagination(){var swiper=this;var params=swiper.params.a11y;if(swiper.pagination&&swiper.params.pagination.clickable&&swiper.pagination.bullets&&swiper.pagination.bullets.length){swiper.pagination.bullets.each(function(bulletIndex,bulletEl){var $bulletEl=$(bulletEl);swiper.a11y.makeElFocusable($bulletEl);swiper.a11y.addElRole($bulletEl,'button');swiper.a11y.addElLabel($bulletEl,params.paginationBulletMessage.replace(/{{index}}/,$bulletEl.index()+1));});}},init:function init(){var swiper=this;swiper.$el.append(swiper.a11y.liveRegion);var params=swiper.params.a11y;var $nextEl;var $prevEl;if(swiper.navigation&&swiper.navigation.$nextEl){$nextEl=swiper.navigation.$nextEl;} if(swiper.navigation&&swiper.navigation.$prevEl){$prevEl=swiper.navigation.$prevEl;} if($nextEl){swiper.a11y.makeElFocusable($nextEl);swiper.a11y.addElRole($nextEl,'button');swiper.a11y.addElLabel($nextEl,params.nextSlideMessage);$nextEl.on('keydown',swiper.a11y.onEnterKey);} if($prevEl){swiper.a11y.makeElFocusable($prevEl);swiper.a11y.addElRole($prevEl,'button');swiper.a11y.addElLabel($prevEl,params.prevSlideMessage);$prevEl.on('keydown',swiper.a11y.onEnterKey);} if(swiper.pagination&&swiper.params.pagination.clickable&&swiper.pagination.bullets&&swiper.pagination.bullets.length){swiper.pagination.$el.on('keydown',("."+(swiper.params.pagination.bulletClass)),swiper.a11y.onEnterKey);}},destroy:function destroy(){var swiper=this;if(swiper.a11y.liveRegion&&swiper.a11y.liveRegion.length>0){swiper.a11y.liveRegion.remove();} var $nextEl;var $prevEl;if(swiper.navigation&&swiper.navigation.$nextEl){$nextEl=swiper.navigation.$nextEl;} if(swiper.navigation&&swiper.navigation.$prevEl){$prevEl=swiper.navigation.$prevEl;} if($nextEl){$nextEl.off('keydown',swiper.a11y.onEnterKey);} if($prevEl){$prevEl.off('keydown',swiper.a11y.onEnterKey);} if(swiper.pagination&&swiper.params.pagination.clickable&&swiper.pagination.bullets&&swiper.pagination.bullets.length){swiper.pagination.$el.off('keydown',("."+(swiper.params.pagination.bulletClass)),swiper.a11y.onEnterKey);}},};var A11y={name:'a11y',params:{a11y:{enabled:true,notificationClass:'swiper-notification',prevSlideMessage:'Previous slide',nextSlideMessage:'Next slide',firstSlideMessage:'This is the first slide',lastSlideMessage:'This is the last slide',paginationBulletMessage:'Go to slide {{index}}',},},create:function create(){var swiper=this;Utils.extend(swiper,{a11y:{liveRegion:$(("")),},});Object.keys(a11y).forEach(function(methodName){swiper.a11y[methodName]=a11y[methodName].bind(swiper);});},on:{init:function init(){var swiper=this;if(!swiper.params.a11y.enabled){return;} swiper.a11y.init();swiper.a11y.updateNavigation();},toEdge:function toEdge(){var swiper=this;if(!swiper.params.a11y.enabled){return;} swiper.a11y.updateNavigation();},fromEdge:function fromEdge(){var swiper=this;if(!swiper.params.a11y.enabled){return;} swiper.a11y.updateNavigation();},paginationUpdate:function paginationUpdate(){var swiper=this;if(!swiper.params.a11y.enabled){return;} swiper.a11y.updatePagination();},destroy:function destroy(){var swiper=this;if(!swiper.params.a11y.enabled){return;} swiper.a11y.destroy();},},};var History={init:function init(){var swiper=this;if(!swiper.params.history){return;} if(!win.history||!win.history.pushState){swiper.params.history.enabled=false;swiper.params.hashNavigation.enabled=true;return;} var history=swiper.history;history.initialized=true;history.paths=History.getPathValues();if(!history.paths.key&&!history.paths.value){return;} history.scrollToSlide(0,history.paths.value,swiper.params.runCallbacksOnInit);if(!swiper.params.history.replaceState){win.addEventListener('popstate',swiper.history.setHistoryPopState);}},destroy:function destroy(){var swiper=this;if(!swiper.params.history.replaceState){win.removeEventListener('popstate',swiper.history.setHistoryPopState);}},setHistoryPopState:function setHistoryPopState(){var swiper=this;swiper.history.paths=History.getPathValues();swiper.history.scrollToSlide(swiper.params.speed,swiper.history.paths.value,false);},getPathValues:function getPathValues(){var pathArray=win.location.pathname.slice(1).split('/').filter(function(part){return part!=='';});var total=pathArray.length;var key=pathArray[total-2];var value=pathArray[total-1];return{key:key,value:value};},setHistory:function setHistory(key,index){var swiper=this;if(!swiper.history.initialized||!swiper.params.history.enabled){return;} var slide=swiper.slides.eq(index);var value=History.slugify(slide.attr('data-history'));if(!win.location.pathname.includes(key)){value=key+"/"+value;} var currentState=win.history.state;if(currentState&¤tState.value===value){return;} if(swiper.params.history.replaceState){win.history.replaceState({value:value},null,value);}else{win.history.pushState({value:value},null,value);}},slugify:function slugify(text){return text.toString().toLowerCase().replace(/\s+/g,'-').replace(/[^\w-]+/g,'').replace(/--+/g,'-').replace(/^-+/,'').replace(/-+$/,'');},scrollToSlide:function scrollToSlide(speed,value,runCallbacks){var swiper=this;if(value){for(var i=0,length=swiper.slides.length;i');$wrapperEl.append($cubeShadowEl);} $cubeShadowEl.css({height:(swiperWidth+"px")});}else{$cubeShadowEl=$el.find('.swiper-cube-shadow');if($cubeShadowEl.length===0){$cubeShadowEl=$('
');$el.append($cubeShadowEl);}}} for(var i=0;i-1){wrapperRotate=(slideIndex*90)+(progress*90);if(rtl){wrapperRotate=(-slideIndex*90)-(progress*90);}} $slideEl.transform(transform);if(params.slideShadows){var shadowBefore=isHorizontal?$slideEl.find('.swiper-slide-shadow-left'):$slideEl.find('.swiper-slide-shadow-top');var shadowAfter=isHorizontal?$slideEl.find('.swiper-slide-shadow-right'):$slideEl.find('.swiper-slide-shadow-bottom');if(shadowBefore.length===0){shadowBefore=$(("
"));$slideEl.append(shadowBefore);} if(shadowAfter.length===0){shadowAfter=$(("
"));$slideEl.append(shadowAfter);} if(shadowBefore.length){shadowBefore[0].style.opacity=Math.max(-progress,0);} if(shadowAfter.length){shadowAfter[0].style.opacity=Math.max(progress,0);}}} $wrapperEl.css({'-webkit-transform-origin':("50% 50% -"+(swiperSize/2)+"px"),'-moz-transform-origin':("50% 50% -"+(swiperSize/2)+"px"),'-ms-transform-origin':("50% 50% -"+(swiperSize/2)+"px"),'transform-origin':("50% 50% -"+(swiperSize/2)+"px"),});if(params.shadow){if(isHorizontal){$cubeShadowEl.transform(("translate3d(0px, "+((swiperWidth/2)+params.shadowOffset)+"px, "+(-swiperWidth/2)+"px) rotateX(90deg) rotateZ(0deg) scale("+(params.shadowScale)+")"));}else{var shadowAngle=Math.abs(wrapperRotate)-(Math.floor(Math.abs(wrapperRotate)/90)*90);var multiplier=1.5-((Math.sin((shadowAngle*2*Math.PI)/360)/2) +(Math.cos((shadowAngle*2*Math.PI)/360)/2));var scale1=params.shadowScale;var scale2=params.shadowScale/multiplier;var offset=params.shadowOffset;$cubeShadowEl.transform(("scale3d("+scale1+", 1, "+scale2+") translate3d(0px, "+((swiperHeight/2)+offset)+"px, "+(-swiperHeight/2/scale2)+"px) rotateX(-90deg)"));}} var zFactor=(Browser.isSafari||Browser.isUiWebView)?(-swiperSize/2):0;$wrapperEl.transform(("translate3d(0px,0,"+zFactor+"px) rotateX("+(swiper.isHorizontal()?0:wrapperRotate)+"deg) rotateY("+(swiper.isHorizontal()?-wrapperRotate:0)+"deg)"));},setTransition:function setTransition(duration){var swiper=this;var $el=swiper.$el;var slides=swiper.slides;slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);if(swiper.params.cubeEffect.shadow&&!swiper.isHorizontal()){$el.find('.swiper-cube-shadow').transition(duration);}},};var EffectCube={name:'effect-cube',params:{cubeEffect:{slideShadows:true,shadow:true,shadowOffset:20,shadowScale:0.94,},},create:function create(){var swiper=this;Utils.extend(swiper,{cubeEffect:{setTranslate:Cube.setTranslate.bind(swiper),setTransition:Cube.setTransition.bind(swiper),},});},on:{beforeInit:function beforeInit(){var swiper=this;if(swiper.params.effect!=='cube'){return;} swiper.classNames.push(((swiper.params.containerModifierClass)+"cube"));swiper.classNames.push(((swiper.params.containerModifierClass)+"3d"));var overwriteParams={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:true,resistanceRatio:0,spaceBetween:0,centeredSlides:false,virtualTranslate:true,};Utils.extend(swiper.params,overwriteParams);Utils.extend(swiper.originalParams,overwriteParams);},setTranslate:function setTranslate(){var swiper=this;if(swiper.params.effect!=='cube'){return;} swiper.cubeEffect.setTranslate();},setTransition:function setTransition(duration){var swiper=this;if(swiper.params.effect!=='cube'){return;} swiper.cubeEffect.setTransition(duration);},},};var Flip={setTranslate:function setTranslate(){var swiper=this;var slides=swiper.slides;var rtl=swiper.rtlTranslate;for(var i=0;i"));$slideEl.append(shadowBefore);} if(shadowAfter.length===0){shadowAfter=$(("
"));$slideEl.append(shadowAfter);} if(shadowBefore.length){shadowBefore[0].style.opacity=Math.max(-progress,0);} if(shadowAfter.length){shadowAfter[0].style.opacity=Math.max(progress,0);}} $slideEl.transform(("translate3d("+tx+"px, "+ty+"px, 0px) rotateX("+rotateX+"deg) rotateY("+rotateY+"deg)"));}},setTransition:function setTransition(duration){var swiper=this;var slides=swiper.slides;var activeIndex=swiper.activeIndex;var $wrapperEl=swiper.$wrapperEl;slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);if(swiper.params.virtualTranslate&&duration!==0){var eventTriggered=false;slides.eq(activeIndex).transitionEnd(function onTransitionEnd(){if(eventTriggered){return;} if(!swiper||swiper.destroyed){return;} eventTriggered=true;swiper.animating=false;var triggerEvents=['webkitTransitionEnd','transitionend'];for(var i=0;i"));$slideEl.append($shadowBeforeEl);} if($shadowAfterEl.length===0){$shadowAfterEl=$(("
"));$slideEl.append($shadowAfterEl);} if($shadowBeforeEl.length){$shadowBeforeEl[0].style.opacity=offsetMultiplier>0?offsetMultiplier:0;} if($shadowAfterEl.length){$shadowAfterEl[0].style.opacity=(-offsetMultiplier)>0?-offsetMultiplier:0;}}} if(Support.pointerEvents||Support.prefixedPointerEvents){var ws=$wrapperEl[0].style;ws.perspectiveOrigin=center+"px 50%";}},setTransition:function setTransition(duration){var swiper=this;swiper.slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);},};var EffectCoverflow={name:'effect-coverflow',params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:true,},},create:function create(){var swiper=this;Utils.extend(swiper,{coverflowEffect:{setTranslate:Coverflow.setTranslate.bind(swiper),setTransition:Coverflow.setTransition.bind(swiper),},});},on:{beforeInit:function beforeInit(){var swiper=this;if(swiper.params.effect!=='coverflow'){return;} swiper.classNames.push(((swiper.params.containerModifierClass)+"coverflow"));swiper.classNames.push(((swiper.params.containerModifierClass)+"3d"));swiper.params.watchSlidesProgress=true;swiper.originalParams.watchSlidesProgress=true;},setTranslate:function setTranslate(){var swiper=this;if(swiper.params.effect!=='coverflow'){return;} swiper.coverflowEffect.setTranslate();},setTransition:function setTransition(duration){var swiper=this;if(swiper.params.effect!=='coverflow'){return;} swiper.coverflowEffect.setTransition(duration);},},};var components=[Device$1,Support$1,Browser$1,Resize,Observer$1,Virtual$1,Keyboard$1,Mousewheel$1,Navigation$1,Pagination$1,Scrollbar$1,Parallax$1,Zoom$1,Lazy$1,Controller$1,A11y,History$1,HashNavigation$1,Autoplay$1,EffectFade,EffectCube,EffectFlip,EffectCoverflow];if(typeof Swiper.use==='undefined'){Swiper.use=Swiper.Class.use;Swiper.installModule=Swiper.Class.installModule;} Swiper.use(components);return Swiper;}))); var ajaxurl=GmediaGallery.ajaxurl;jQuery(function($){$('style.gmedia_assets_style_import').appendTo('head');$('style.gmedia_module_style_import').appendTo('head');$('script.gm_script2html').each(function(){var html=$(this).html();$(this).replaceWith(html);});setTimeout(function(){$('a[download]').off('click');},50);}); eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('

The requested content cannot be loaded.
Please try again later.

');F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case"html":m.html(e.content);F();break;case"inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('
').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case"image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case"swf":e.scrolling="no";C='';P="";b.each(e.swf,function(x,H){C+='';P+=" "+x+'="'+H+'"'});C+='";m.html(C);F();break;case"ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win=="function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case"iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('
');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?d.titlePosition=="float"?'
'+s+'
':'
'+s+"
":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case"inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case"over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case"float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('').appendTo(j);f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type=="image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=0,C=a.length;ko.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('
'),t=b('
'),u=b('
'),f=b('
'));D=b('
').append('
').appendTo(f);D.append(j=b('
'),E=b(''),n=b('
'),z=b(''),A=b(''));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('').prependTo(D)}}};b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery); !function(d,l){"use strict";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,i,a,s=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),c=0;c-1&&t%1==0&&t-1}var o=e(5);t.exports=r},function(t,n,e){"use strict";function r(t,n){var e=this.__data__,r=o(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this}var o=e(5);t.exports=r},function(t,n,e){"use strict";var r=e(14),o=e(12),c=r(o,"Map");t.exports=c},function(t,n,e){"use strict";function r(t){var n=o(this,t).delete(t);return this.size-=n?1:0,n}var o=e(6);t.exports=r},function(t,n,e){"use strict";function r(t){var n=void 0===t?"undefined":o(t);return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=r},function(t,n,e){"use strict";function r(t){return o(this,t).get(t)}var o=e(6);t.exports=r},function(t,n,e){"use strict";function r(t){return o(this,t).has(t)}var o=e(6);t.exports=r},function(t,n,e){"use strict";function r(t,n){var e=o(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this}var o=e(6);t.exports=r},function(t,n,e){"use strict";function r(t){return null==t?"":o(t)}var o=e(69);t.exports=r},function(t,n,e){"use strict";function r(t){if("string"==typeof t)return t;if(i(t))return c(t,r)+"";if(u(t))return f?f.call(t):"";var n=t+"";return"0"==n&&1/t==-a?"-0":n}var o=e(3),c=e(70),i=e(1),u=e(10),a=1/0,s=o?o.prototype:void 0,f=s?s.toString:void 0;t.exports=r},function(t,n,e){"use strict";function r(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=r},function(t,n,e){"use strict";function r(t){return i(c(t,void 0,o),t+"")}var o=e(80),c=e(84),i=e(86);t.exports=r},function(t,n,e){"use strict";function r(t){return(null==t?0:t.length)?o(t,1):[]}var o=e(81);t.exports=r},function(t,n,e){"use strict";function r(t,n,e,i,u){var a=-1,s=t.length;for(e||(e=c),u||(u=[]);++a0&&e(f)?n>1?r(f,n-1,e,i,u):o(u,f):i||(u[u.length]=f)}return u}var o=e(82),c=e(83);t.exports=r},function(t,n,e){"use strict";function r(t,n){for(var e=-1,r=n.length,o=t.length;++e0){if(++n>=o)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}var o=800,c=16,i=Date.now;t.exports=r}]); /*! jQuery Validation Plugin - v1.19.0 - 11/28/2018 * https://jqueryvalidation.org/ * Copyright (c) 2018 Jörn Zaefferer; Licensed MIT */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.on("click.validate",":submit",function(b){c.submitButton=b.currentTarget,a(this).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(this).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.on("submit.validate",function(b){function d(){var d,e;return c.submitButton&&(c.settings.submitHandler||c.formSubmitted)&&(d=a("").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),!(c.settings.submitHandler&&!c.settings.debug)||(e=c.settings.submitHandler.call(c,c.currentForm,b),d&&d.remove(),void 0!==e&&e)}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c,d;return a(this[0]).is("form")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,b||(d=d.concat(c.errorList))}),c.errorList=d),b},rules:function(b,c){var d,e,f,g,h,i,j=this[0],k="undefined"!=typeof this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=j&&(!j.form&&k&&(j.form=this.closest("form")[0],j.name=this.attr("name")),null!=j.form)){if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(a,b){i[b]=f[b],delete f[b]}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g)),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}}),a.extend(a.expr.pseudos||a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){var c=a(b).val();return null!==c&&!!a.trim(""+c)},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:void 0===c?b:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&""===this.elementValue(b)||a.inArray(c.keyCode,d)!==-1||(b.name in this.submitted||b.name in this.invalid)&&this.element(b)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}."),step:a.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c="undefined"!=typeof a(this).attr("contenteditable")&&"false"!==a(this).attr("contenteditable");if(!this.form&&c&&(this.form=a(this).closest("form")[0],this.name=a(this).attr("name")),d===this.form){var e=a.data(this.form,"validator"),f="on"+b.type.replace(/^validate/,""),g=e.settings;g[f]&&!a(this).is(g.ignore)&&g[f].call(e,this,b)}}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.currentForm,e=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){e[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",b).on("click.validate","select, option, [type='radio'], [type='checkbox']",b),this.settings.invalidHandler&&a(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c,d,e=this.clean(b),f=this.validationTargetFor(e),g=this,h=!0;return void 0===f?delete this.invalid[e.name]:(this.prepareElement(f),this.currentElements=a(f),d=this.groups[f.name],d&&a.each(this.groups,function(a,b){b===d&&a!==f.name&&(e=g.validationTargetFor(g.clean(g.findByName(a))),e&&e.name in g.invalid&&(g.currentElements.push(e),h=g.check(e)&&h))}),c=this.check(f)!==!1,h=h&&c,c?this.invalid[f.name]=!1:this.invalid[f.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),a(b).attr("aria-invalid",!c)),h},showErrors:function(b){if(b){var c=this;a.extend(this.errorMap,b),this.errorList=a.map(this.errorMap,function(a,b){return{message:a,element:c.findByName(b)[0]}}),this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var b=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(b)},resetElements:function(a){var b;if(this.settings.unhighlight)for(b=0;a[b];b++)this.settings.unhighlight.call(this,a[b],this.settings.errorClass,""),this.findByName(a[b].name).removeClass(this.settings.validClass);else a.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)void 0!==a[b]&&null!==a[b]&&a[b]!==!1&&c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var d=this.name||a(this).attr("name"),e="undefined"!=typeof a(this).attr("contenteditable")&&"false"!==a(this).attr("contenteditable");return!d&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),e&&(this.form=a(this).closest("form")[0],this.name=d),this.form===b.currentForm&&(!(d in c||!b.objectLength(a(this).rules()))&&(c[d]=!0,!0))})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([])},reset:function(){this.resetInternals(),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d,e=a(b),f=b.type,g="undefined"!=typeof e.attr("contenteditable")&&"false"!==e.attr("contenteditable");return"radio"===f||"checkbox"===f?this.findByName(b.name).filter(":checked").val():"number"===f&&"undefined"!=typeof b.validity?b.validity.badInput?"NaN":e.val():(c=g?e.text():e.val(),"file"===f?"C:\\fakepath\\"===c.substr(0,12)?c.substr(12):(d=c.lastIndexOf("/"),d>=0?c.substr(d+1):(d=c.lastIndexOf("\\"),d>=0?c.substr(d+1):c)):"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f,g=a(b).rules(),h=a.map(g,function(a,b){return b}).length,i=!1,j=this.elementValue(b);"function"==typeof g.normalizer?f=g.normalizer:"function"==typeof this.settings.normalizer&&(f=this.settings.normalizer),f&&(j=f.call(b,j),delete g.normalizer);for(d in g){e={method:d,parameters:g[d]};try{if(c=a.validator.methods[d].call(this,j,b,e.parameters),"dependency-mismatch"===c&&1===h){i=!0;continue}if(i=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(k){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",k),k instanceof TypeError&&(k.message+=". Exception occurred when checking element "+b.id+", check the '"+e.method+"' method."),k}}if(!i)return this.objectLength(g)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;aWarning: No message defined for "+b.name+""),e=/\$?\{(\d+)\}/g;return"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),d},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b);this.errorList.push({message:c,element:a,method:b.method}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g,h=this.errorsFor(b),i=this.idOrName(b),j=a(b).attr("aria-describedby");h.length?(h.removeClass(this.settings.validClass).addClass(this.settings.errorClass),h.html(c)):(h=a("<"+this.settings.errorElement+">").attr("id",i+"-error").addClass(this.settings.errorClass).html(c||""),d=h,this.settings.wrapper&&(d=h.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement.call(this,d,a(b)):d.insertAfter(b),h.is("label")?h.attr("for",i):0===h.parents("label[for='"+this.escapeCssMeta(i)+"']").length&&(f=h.attr("id"),j?j.match(new RegExp("\\b"+this.escapeCssMeta(f)+"\\b"))||(j+=" "+f):j=f,a(b).attr("aria-describedby",j),e=this.groups[b.name],e&&(g=this,a.each(g.groups,function(b,c){c===e&&a("[name='"+g.escapeCssMeta(b)+"']",g.currentForm).attr("aria-describedby",h.attr("id"))})))),!c&&this.settings.success&&(h.text(""),"string"==typeof this.settings.success?h.addClass(this.settings.success):this.settings.success(h,b)),this.toShow=this.toShow.add(h)},errorsFor:function(b){var c=this.escapeCssMeta(this.idOrName(b)),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+this.escapeCssMeta(d).replace(/\s+/g,", #")),this.errors().filter(e)},escapeCssMeta:function(a){return a.replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+this.escapeCssMeta(b)+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return!this.dependTypes[typeof a]||this.dependTypes[typeof a](a,b)},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,a(b).addClass(this.settings.pendingClass),this.pending[b.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass),c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.submitButton&&a("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b,c){return c="string"==typeof c&&c||"remote",a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,{method:c})})},destroy:function(){this.resetForm(),a(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},normalizeAttributeRule:function(a,b,c,d){/min|max|step/.test(c)&&(null===b||/number|range|text/.test(b))&&(d=Number(d),isNaN(d)&&(d=void 0)),d||0===d?a[c]=d:b===c&&"range"!==b&&(a[c]=!0)},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),this.normalizeAttributeRule(e,g,c,d);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),""===d&&(d=!0),this.normalizeAttributeRule(e,g,c,d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0===e.param||e.param:(a.data(c.form,"validator").resetElements(a(c)),delete b[d])}}),a.each(b,function(d,e){b[d]=a.isFunction(e)&&"normalizer"!==d?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:void 0!==b&&null!==b&&b.length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(a)},date:function(){var a=!1;return function(b,c){return a||(a=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(c)||!/Invalid|NaN/.test(new Date(b).toString())}}(),dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e<=d},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},step:function(b,c,d){var e,f=a(c).attr("type"),g="Step attribute on input type "+f+" is not supported.",h=["text","number","range"],i=new RegExp("\\b"+f+"\\b"),j=f&&!i.test(h.join()),k=function(a){var b=(""+a).match(/(?:\.(\d+))?$/);return b&&b[1]?b[1].length:0},l=function(a){return Math.round(a*Math.pow(10,e))},m=!0;if(j)throw new Error(g);return e=k(d),(k(b)>e||l(b)%l(d)!==0)&&(m=!1),this.optional(c)||m},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.not(".validate-equalTo-blur").length&&e.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d,e){if(this.optional(c))return"dependency-mismatch";e="string"==typeof e&&e||"remote";var f,g,h,i=this.previousValue(c,e);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),i.originalMessage=i.originalMessage||this.settings.messages[c.name][e],this.settings.messages[c.name][e]=i.message,d="string"==typeof d&&{url:d}||d,h=a.param(a.extend({data:b},d.data)),i.old===h?i.valid:(i.old=h,f=this,this.startRequest(c),g={},g[c.name]=b,a.ajax(a.extend(!0,{mode:"abort",port:"validate"+c.name,dataType:"json",data:g,context:f.currentForm,success:function(a){var d,g,h,j=a===!0||"true"===a;f.settings.messages[c.name][e]=i.originalMessage,j?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(c),f.formSubmitted=h,f.successList.push(c),f.invalid[c.name]=!1,f.showErrors()):(d={},g=a||f.defaultMessage(c,{method:e,parameters:b}),d[c.name]=i.message=g,f.invalid[c.name]=!0,f.showErrors(d)),i.valid=j,f.stopRequest(c,j)}},d)),"pending")}}});var b,c={};return a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)}),a}); /*! mailcheck v1.1.2 @licence MIT */var Mailcheck={domainThreshold:2,secondLevelThreshold:2,topLevelThreshold:2,defaultDomains:["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","mac.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","google.com","optonline.net","sbcglobal.net","aol.com","me.com","btinternet.com","charter.net","shaw.ca"],defaultSecondLevelDomains:["yahoo","hotmail","mail","live","outlook","gmx"],defaultTopLevelDomains:["com","com.au","com.tw","ca","co.nz","co.uk","de","fr","it","ru","net","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","in","net","net.au","info","biz","mil","co.jp","sg","hu","uk"],run:function(a){a.domains=a.domains||Mailcheck.defaultDomains,a.secondLevelDomains=a.secondLevelDomains||Mailcheck.defaultSecondLevelDomains,a.topLevelDomains=a.topLevelDomains||Mailcheck.defaultTopLevelDomains,a.distanceFunction=a.distanceFunction||Mailcheck.sift4Distance;var b=function(a){return a},c=a.suggested||b,d=a.empty||b,e=Mailcheck.suggest(Mailcheck.encodeEmail(a.email),a.domains,a.secondLevelDomains,a.topLevelDomains,a.distanceFunction);return e?c(e):d()},suggest:function(a,b,c,d,e){a=a.toLowerCase();var f=this.splitEmail(a);if(c&&d&&-1!==c.indexOf(f.secondLevelDomain)&&-1!==d.indexOf(f.topLevelDomain))return!1;var g=this.findClosestDomain(f.domain,b,e,this.domainThreshold);if(g)return g==f.domain?!1:{address:f.address,domain:g,full:f.address+"@"+g};var h=this.findClosestDomain(f.secondLevelDomain,c,e,this.secondLevelThreshold),i=this.findClosestDomain(f.topLevelDomain,d,e,this.topLevelThreshold);if(f.domain){g=f.domain;var j=!1;if(h&&h!=f.secondLevelDomain&&(g=g.replace(f.secondLevelDomain,h),j=!0),i&&i!=f.topLevelDomain&&""!==f.secondLevelDomain&&(g=g.replace(new RegExp(f.topLevelDomain+"$"),i),j=!0),j)return{address:f.address,domain:g,full:f.address+"@"+g}}return!1},findClosestDomain:function(a,b,c,d){d=d||this.topLevelThreshold;var e,f=1/0,g=null;if(!a||!b)return!1;c||(c=this.sift4Distance);for(var h=0;he&&(f=e,g=b[h])}return d>=f&&null!==g?g:!1},sift4Distance:function(a,b,c){if(void 0===c&&(c=5),!a||!a.length)return b?b.length:0;if(!b||!b.length)return a.length;for(var d=a.length,e=b.length,f=0,g=0,h=0,i=0,j=0,k=[];d>f&&e>g;){if(a.charAt(f)==b.charAt(g)){i++;for(var l=!1,m=0;m=Math.abs(n.c2-n.c1),l?j++:n.trans||(n.trans=!0,j++);break}f>n.c2&&g>n.c1?k.splice(m,1):m++}k.push({c1:f,c2:g,trans:l})}else{h+=i,i=0,f!=g&&(f=g=Math.min(f,g));for(var o=0;c>o&&(d>f+o||e>g+o);o++){if(d>f+o&&a.charAt(f+o)==b.charAt(g)){f+=o-1,g--;break}if(e>g+o&&a.charAt(f)==b.charAt(g+o)){f--,g+=o-1;break}}}f++,g++,(f>=d||g>=e)&&(h+=i,i=0,f=g=Math.min(f,g))}return h+=i,Math.round(Math.max(d,e)-h+j)},splitEmail:function(a){a=null!==a?a.replace(/^\s*/,"").replace(/\s*$/,""):null;var b=a.split("@");if(b.length<2)return!1;for(var c=0;cmaxSize){return false;}}} return true;},wpforms_settings.val_filesize);$.validator.methods.email=function(value,element){return this.optional(element)||/^[a-z0-9.!#$%&'*+\/=?^_`{|}~-]+@((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}$/i.test(value);};$.validator.addMethod('confirm',function(value,element,param){return $.validator.methods.equalTo.call(this,value,element,param);},wpforms_settings.val_confirm);$.validator.addMethod('required-payment',function(value,element){return app.amountSanitize(value)>0;},wpforms_settings.val_requiredpayment);$.validator.addMethod('time12h',function(value,element){return this.optional(element)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(value);},wpforms_settings.val_time12h);$.validator.addMethod('time24h',function(value,element){return this.optional(element)||/^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(\ ?[AP]M)?$/i.test(value);},wpforms_settings.val_time24h);$.validator.addMethod('check-limit',function(value,element){var $ul=$(element).closest('ul'),$checked=$ul.find('input[type="checkbox"]:checked'),choiceLimit=parseInt($ul.attr('data-choice-limit')||0,10);if(0===choiceLimit){return true;} return $checked.length<=choiceLimit;},function(params,element){var choiceLimit=parseInt($(element).closest('ul').attr('data-choice-limit')||0,10);return wpforms_settings.val_checklimit.replace('{#}',choiceLimit);});if(typeof $.fn.intlTelInput!=='undefined'){$.validator.addMethod('smart-phone-field',function(value,element){return this.optional(element)||$(element).intlTelInput('isValidNumber');},wpforms_settings.val_phone);} $.validator.addMethod('us-phone-field',function(value,element){return this.optional(element)||value.replace(/[^\d]/g,'').length===10;},wpforms_settings.val_phone);$.validator.addMethod('int-phone-field',function(value,element){return this.optional(element)||value.replace(/[^\d]/g,'').length>0;},wpforms_settings.val_phone);$('.wpforms-validate').each(function(){var form=$(this),formID=form.data('formid'),properties;if(typeof window['wpforms_'+formID]!=='undefined'&&window['wpforms_'+formID].hasOwnProperty('validate')){properties=window['wpforms_'+formID].validate;}else if(typeof wpforms_validate!=='undefined'){properties=wpforms_validate;}else{properties={errorClass:'wpforms-error',validClass:'wpforms-valid',errorPlacement:function(error,element){if('radio'===element.attr('type')||'checkbox'===element.attr('type')){if(element.hasClass('wpforms-likert-scale-option')){if(element.closest('table').hasClass('single-row')){element.closest('table').after(error);}else{element.closest('tr').find('th').append(error);}}else if(element.hasClass('wpforms-net-promoter-score-option')){element.closest('table').after(error);}else{element.closest('.wpforms-field-checkbox').find('label.wpforms-error').remove();element.parent().parent().parent().append(error);}}else if(element.is('select')&&element.attr('class').match(/date-month|date-day|date-year/)){if(0===element.parent().find('label.wpforms-error:visible').length){element.parent().find('select:last').after(error);}}else if(element.hasClass('wpforms-smart-phone-field')){element.parent().after(error);}else{error.insertAfter(element);}},highlight:function(element,errorClass,validClass){var $element=$(element),$field=$element.closest('.wpforms-field'),inputName=$element.attr('name');if('radio'===$element.attr('type')||'checkbox'===$element.attr('type')){$field.find('input[name=\''+inputName+'\']').addClass(errorClass).removeClass(validClass);}else{$element.addClass(errorClass).removeClass(validClass);} $field.addClass('wpforms-has-error');},unhighlight:function(element,errorClass,validClass){var $element=$(element),$field=$element.closest('.wpforms-field'),inputName=$element.attr('name');if('radio'===$element.attr('type')||'checkbox'===$element.attr('type')){$field.find('input[name=\''+inputName+'\']').addClass(validClass).removeClass(errorClass);}else{$element.addClass(validClass).removeClass(errorClass);} $field.removeClass('wpforms-has-error');},submitHandler:function(form){var $form=$(form),$submit=$form.find('.wpforms-submit'),altText=$submit.data('alt-text'),recaptchaID=$submit.get(0).recaptchaID;$submit.prop('disabled',true);$form.find('#wpforms-field_recaptcha-error').remove();if(!app.empty(recaptchaID)||recaptchaID===0){grecaptcha.execute(recaptchaID).then(null,function(reason){reason=(null===reason)?'':'
'+reason;$form.find('.wpforms-recaptcha-container').append('');$submit.prop('disabled',false);});return false;} if(altText){$submit.text(altText);} $('.wpforms-input-temp-name').removeAttr('name');app.formSubmit($form);},invalidHandler:function(event,validator){if(typeof validator.errorList[0]!=='undefined'){app.scrollToError($(validator.errorList[0].element));}},onkeyup:function(element,event){var excludedKeys=[16,17,18,20,35,36,37,38,39,40,45,144,225];if($(element).hasClass('wpforms-novalidate-onkeyup')){return;} if(9===event.which&&''===this.elementValue(element)||$.inArray(event.keyCode,excludedKeys)!==-1){return;}else if(element.name in this.submitted||element.name in this.invalid){this.element(element);}},onfocusout:function(element){var validate=false;if($(element).hasClass('wpforms-novalidate-onkeyup')&&!element.value){validate=true;} if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){validate=true;} if(validate){this.element(element);}},onclick:function(element){var validate=false,type=(element||{}).type,$el=$(element);if(['checkbox','radio'].indexOf(type)>-1){if($el.hasClass('wpforms-likert-scale-option')){$el=$el.closest('tr');}else{$el=$el.closest('.wpforms-field');} $el.find('label.wpforms-error').remove();validate=true;} if(validate){this.element(element);}},};} form.validate(properties);});}},loadDatePicker:function(){if(typeof $.fn.flatpickr!=='undefined'){$('.wpforms-datepicker').each(function(){var element=$(this),form=element.closest('.wpforms-form'),formID=form.data('formid'),fieldID=element.closest('.wpforms-field').data('field-id'),properties;if(typeof window['wpforms_'+formID+'_'+fieldID]!=='undefined'&&window['wpforms_'+formID+'_'+fieldID].hasOwnProperty('datepicker')){properties=window['wpforms_'+formID+'_'+fieldID].datepicker;}else if(typeof window['wpforms_'+formID]!=='undefined'&&window['wpforms_'+formID].hasOwnProperty('datepicker')){properties=window['wpforms_'+formID].datepicker;}else if(typeof wpforms_datepicker!=='undefined'){properties=wpforms_datepicker;}else{properties={disableMobile:true,};} if(!properties.hasOwnProperty('locale')&&typeof wpforms_settings!=='undefined'&&wpforms_settings.hasOwnProperty('locale')){properties.locale=wpforms_settings.locale;} element.flatpickr(properties);});}},loadTimePicker:function(){if(typeof $.fn.timepicker!=='undefined'){$('.wpforms-timepicker').each(function(){var element=$(this),form=element.closest('.wpforms-form'),formID=form.data('formid'),fieldID=element.closest('.wpforms-field').data('field-id'),properties;if(typeof window['wpforms_'+formID+'_'+fieldID]!=='undefined'&&window['wpforms_'+formID+'_'+fieldID].hasOwnProperty('timepicker')){properties=window['wpforms_'+formID+'_'+fieldID].timepicker;}else if(typeof window['wpforms_'+formID]!=='undefined'&&window['wpforms_'+formID].hasOwnProperty('timepicker')){properties=window['wpforms_'+formID].timepicker;}else if(typeof wpforms_timepicker!=='undefined'){properties=wpforms_timepicker;}else{properties={scrollDefault:'now',forceRoundTime:true,};} element.timepicker(properties);});}},loadInputMask:function(){if(typeof $.fn.inputmask==='undefined'){return;} $('.wpforms-masked-input').inputmask();},loadSmartPhoneField:function(){if(typeof $.fn.intlTelInput==='undefined'){return;} var inputOptions={};if(!wpforms_settings.gdpr){inputOptions.geoIpLookup=app.currentIpToCountry;} if(wpforms_settings.gdpr){var lang=this.getFirstBrowserLanguage(),countryCode=lang.indexOf('-')>-1?lang.split('-').pop():'';} if(countryCode){var countryData=window.intlTelInputGlobals.getCountryData();countryData=countryData.filter(function(country){return country.iso2===countryCode.toLowerCase();});countryCode=countryData.length?countryCode:'';} inputOptions.initialCountry=wpforms_settings.gdpr&&countryCode?countryCode:'auto';$('.wpforms-smart-phone-field').each(function(i,el){var $el=$(el);inputOptions.hiddenInput=$el.closest('.wpforms-field-phone').data('field-id');inputOptions.utilsScript=wpforms_settings.wpforms_plugin_url+'pro/assets/js/vendor/jquery.intl-tel-input-utils.js';$el.intlTelInput(inputOptions);$el.removeAttr('name');$el.on('blur keydown',function(){if($el.intlTelInput('isValidNumber')){$el.siblings('input[type="hidden"]').val($el.intlTelInput('getNumber'));}});});},loadPayments:function(){$('.wpforms-payment-total').each(function(index,el){app.amountTotal(this);});if(typeof $.fn.payment!=='undefined'){$('.wpforms-field-credit-card-cardnumber').payment('formatCardNumber');$('.wpforms-field-credit-card-cardcvc').payment('formatCardCVC');}},loadMailcheck:function(){if(!wpforms_settings.mailcheck_enabled){return;} if(typeof $.fn.mailcheck==='undefined'){return;} if(wpforms_settings.mailcheck_domains.length>0){Mailcheck.defaultDomains=Mailcheck.defaultDomains.concat(wpforms_settings.mailcheck_domains);} if(wpforms_settings.mailcheck_toplevel_domains.length>0){Mailcheck.defaultTopLevelDomains=Mailcheck.defaultTopLevelDomains.concat(wpforms_settings.mailcheck_toplevel_domains);} $(document).on('blur','.wpforms-field-email input',function(){var $t=$(this),id=$t.attr('id');$t.mailcheck({suggested:function(el,suggestion){$('#'+id+'_suggestion').remove();var sugg=''+suggestion.full+'';sugg=wpforms_settings.val_email_suggestion.replace('{suggestion}',sugg);$(el).after('');},empty:function(){$('#'+id+'_suggestion').remove();},});});$(document).on('click','.wpforms-field-email .mailcheck-suggestion',function(e){var $t=$(this),id=$t.attr('data-id');e.preventDefault();$('#'+id).val($t.text());$t.parent().remove();});},bindUIActions:function(){$(document).on('click','.wpforms-page-button',function(event){event.preventDefault();app.pagebreakNav(this);});$(document).on('change input','.wpforms-payment-price',function(){app.amountTotal(this,true);});$(document).on('input','.wpforms-payment-user-input',function(){var $this=$(this),amount=$this.val();$this.val(amount.replace(/[^0-9.,]/g,''));});$(document).on('focusout','.wpforms-payment-user-input',function(){var $this=$(this),amount=$this.val(),sanitized=app.amountSanitize(amount),formatted=app.amountFormat(sanitized);$this.val(formatted);});$(document).on('wpformsProcessConditionals',function(e,el){app.amountTotal(el,true);});$(document).ready(function(){$('.wpforms-field-radio .wpforms-image-choices-item input:checked').change();$('.wpforms-field-payment-multiple .wpforms-image-choices-item input:checked').change();$('.wpforms-field-checkbox .wpforms-image-choices-item input').change();$('.wpforms-field-payment-checkbox .wpforms-image-choices-item input').change();});$('.wpforms-field-rating-item').hover(function(){$(this).parent().find('.wpforms-field-rating-item').removeClass('selected hover');$(this).prevAll().andSelf().addClass('hover');},function(){$(this).parent().find('.wpforms-field-rating-item').removeClass('selected hover');$(this).parent().find('input:checked').parent().prevAll().andSelf().addClass('selected');});$(document).on('change','.wpforms-field-rating-item input',function(){var $this=$(this),$wrap=$this.closest('.wpforms-field-rating-items'),$items=$wrap.find('.wpforms-field-rating-item');$items.removeClass('hover selected');$this.parent().prevAll().andSelf().addClass('selected');});$(document).ready(function(){$('.wpforms-field-rating-item input:checked').change();});$(document).on('keypress','.wpforms-image-choices-item label',function(event){var $this=$(this),$field=$this.closest('.wpforms-field');if($field.hasClass('wpforms-conditional-hide')){event.preventDefault();return false;} if(13===event.which){$('#'+$this.attr('for')).click();}});if(window.document.documentMode){$(document).on('click','.wpforms-image-choices-item img',function(){$(this).closest('label').find('input').click();});} $(document).on('change','.wpforms-field-checkbox input, .wpforms-field-radio input, .wpforms-field-payment-multiple input, .wpforms-field-payment-checkbox input, .wpforms-field-gdpr-checkbox input',function(event){var $this=$(this),$field=$this.closest('.wpforms-field');if($field.hasClass('wpforms-conditional-hide')){event.preventDefault();return false;} switch($this.attr('type')){case'radio':$this.closest('ul').find('li').removeClass('wpforms-selected').find('input[type=radio]').removeProp('checked');$this.prop('checked',true).closest('li').addClass('wpforms-selected');break;case'checkbox':if($this.is(':checked')){$this.closest('li').addClass('wpforms-selected');$this.prop('checked',true);}else{$this.closest('li').removeClass('wpforms-selected');$this.prop('checked',false);} break;}});$(document).on('change','.wpforms-field-file-upload input[type=file]:not(".dropzone-input")',function(){var $this=$(this),$uploads=$this.closest('form.wpforms-form').find('.wpforms-field-file-upload input:not(".dropzone-input")'),totalSize=0,postMaxSize=Number(wpforms_settings.post_max_size),errorMsg='
'+wpforms_settings.val_post_max_size+'
',errorCntTpl='
{errorMsg}
',$submitCnt=$this.closest('form.wpforms-form').find('.wpforms-submit-container'),$submitBtn=$submitCnt.find('button.wpforms-submit'),$errorCnt=$submitCnt.prev();$uploads.each(function(){var $upload=$(this),i=0,len=$upload[0].files.length;for(;ipostMaxSize){totalSize=Number((totalSize/1048576).toFixed(3));postMaxSize=Number((postMaxSize/1048576).toFixed(3));errorMsg=errorMsg.replace(/{totalSize}/,totalSize).replace(/{maxSize}/,postMaxSize);if($errorCnt.hasClass('wpforms-error-container')){$errorCnt.find('.wpforms-error-container-post_max_size').remove();$errorCnt.append(errorMsg);}else{$submitCnt.before(errorCntTpl.replace(/{errorMsg}/,errorMsg));} $submitBtn.prop('disabled',true);}else{$errorCnt.find('.wpforms-error-container-post_max_size').remove();$submitBtn.prop('disabled',false);}});$(document).on('change input','.wpforms-field-number-slider input[type=range]',function(event){var hintEl=$(event.target).siblings('.wpforms-field-number-slider-hint');hintEl.html(hintEl.data('hint').replace('{value}',''+event.target.value+''));});$(document).on('keydown','.wpforms-form input',function(e){if(e.keyCode!==13){return;} var $t=$(this),$page=$t.closest('.wpforms-page');if($page.length===0){return;} if(['text','tel','number','email','url','radio','checkbox'].indexOf($t.attr('type'))<0){return;} if($t.hasClass('wpforms-datepicker')){$t.flatpickr('close');} e.preventDefault();if($page.hasClass('last')){$page.closest('.wpforms-form').find('.wpforms-submit').click();return;} $page.find('.wpforms-page-next').click();});$(document).on('input','.wpforms-field-number input',function(e){this.value=this.value.replace(/[^-0-9.]/g,'');});},scrollToError:function($el){if($el.length===0){return;} var $field=$el.find('.wpforms-field.wpforms-has-error');if($field.length===0){$field=$el.closest('.wpforms-field');} if($field.length===0){return;} var offset=$field.offset();if(typeof offset==='undefined'){return;} app.animateScrollTop(offset.top-75,750).done(function(){var $error=$field.find('.wpforms-error').first();if(app.isFunction($error.focus)){$error.focus();}});},pagebreakNav:function(el){var $this=$(el),valid=true,action=$this.data('action'),page=$this.data('page'),page2=page,next=page+1,prev=page-1,formID=$this.data('formid'),$form=$this.closest('.wpforms-form'),$page=$form.find('.wpforms-page-'+page),$submit=$form.find('.wpforms-submit-container'),$indicator=$form.find('.wpforms-page-indicator'),$reCAPTCHA=$form.find('.wpforms-recaptcha-container'),pageScroll=false;if(false===window.wpforms_pageScroll){pageScroll=false;}else if(!app.empty(window.wpform_pageScroll)){pageScroll=window.wpform_pageScroll;}else{pageScroll=$indicator.attr('scroll')!=='0'?75:false;} if('next'===action){if(typeof $.fn.validate!=='undefined'){$page.find(':input').each(function(index,el){if(!$(el).valid()){valid=false;}});app.scrollToError($page);} if(valid){page2=next;$page.hide();var $nextPage=$form.find('.wpforms-page-'+next);$nextPage.show();if($nextPage.hasClass('last')){$reCAPTCHA.show();$submit.show();} if(pageScroll){app.animateScrollTop($form.offset().top-pageScroll,750);} $this.trigger('wpformsPageChange',[page2,$form]);}}else if('prev'===action){page2=prev;$page.hide();$form.find('.wpforms-page-'+prev).show();$reCAPTCHA.hide();$submit.hide();if(pageScroll){app.animateScrollTop($form.offset().top-pageScroll);} $this.trigger('wpformsPageChange',[page2,$form]);} if($indicator){var theme=$indicator.data('indicator'),color=$indicator.data('indicator-color');if('connector'===theme||'circles'===theme){$indicator.find('.wpforms-page-indicator-page').removeClass('active');$indicator.find('.wpforms-page-indicator-page-'+page2).addClass('active');$indicator.find('.wpforms-page-indicator-page-number').removeAttr('style');$indicator.find('.active .wpforms-page-indicator-page-number').css('background-color',color);if('connector'===theme){$indicator.find('.wpforms-page-indicator-page-triangle').removeAttr('style');$indicator.find('.active .wpforms-page-indicator-page-triangle').css('border-top-color',color);}}else if('progress'===theme){var $pageTitle=$indicator.find('.wpforms-page-indicator-page-title'),$pageSep=$indicator.find('.wpforms-page-indicator-page-title-sep'),totalPages=$form.find('.wpforms-page').length,width=(page2/totalPages)*100;$indicator.find('.wpforms-page-indicator-page-progress').css('width',width+'%');$indicator.find('.wpforms-page-indicator-steps-current').text(page2);if($pageTitle.data('page-'+page2+'-title')){$pageTitle.css('display','inline').text($pageTitle.data('page-'+page2+'-title'));$pageSep.css('display','inline');}else{$pageTitle.css('display','none');$pageSep.css('display','none');}}}},bindOptinMonster:function(){document.addEventListener('om.Campaign.load',function(event){app.ready();app.optinMonsterRecaptchaReset(event.detail.Campaign.data.id);});$(document).on('OptinMonsterOnShow',function(event,data,object){app.ready();app.optinMonsterRecaptchaReset(data.optin);});},optinMonsterRecaptchaReset:function(optinId){var $form=$('#om-'+optinId).find('.wpforms-form'),$recaptchaContainer=$form.find('.wpforms-recaptcha-container'),$recaptcha=$form.find('.g-recaptcha'),recaptchaSiteKey=$recaptcha.attr('data-sitekey'),recaptchaID='recaptcha-'+Date.now();if($form.length&&$recaptcha.length){$recaptcha.remove();$recaptchaContainer.prepend('
');grecaptcha.render(recaptchaID,{sitekey:recaptchaSiteKey,callback:function(){wpformsRecaptchaCallback($('#'+recaptchaID));},});}},amountTotal:function(el,validate){validate=validate||false;var $form=$(el).closest('.wpforms-form'),total=0,totalFormatted,totalFormattedSymbol,currency=app.getCurrency();$('.wpforms-payment-price',$form).each(function(index,el){var amount=0,$this=$(this);if($this.closest('.wpforms-field-payment-single').hasClass('wpforms-conditional-hide')){return;} if('text'===$this.attr('type')||'hidden'===$this.attr('type')){amount=$this.val();}else if(('radio'===$this.attr('type')||'checkbox'===$this.attr('type'))&&$this.is(':checked')){amount=$this.data('amount');}else if($this.is('select')&&$this.find('option:selected').length>0){amount=$this.find('option:selected').data('amount');} if(!app.empty(amount)){amount=app.amountSanitize(amount);total=Number(total)+Number(amount);}});totalFormatted=app.amountFormat(total);if('left'===currency.symbol_pos){totalFormattedSymbol=currency.symbol+' '+totalFormatted;}else{totalFormattedSymbol=totalFormatted+' '+currency.symbol;} $form.find('.wpforms-payment-total').each(function(index,el){if('hidden'===$(this).attr('type')||'text'===$(this).attr('type')){$(this).val(totalFormattedSymbol);if('text'===$(this).attr('type')&&validate&&$form.data('validator')){$(this).valid();}}else{$(this).text(totalFormattedSymbol);}});},amountSanitize:function(amount){var currency=app.getCurrency();amount=amount.toString().replace(/[^0-9.,]/g,'');if(','===currency.decimal_sep&&(amount.indexOf(currency.decimal_sep)!==-1)){if('.'===currency.thousands_sep&&amount.indexOf(currency.thousands_sep)!==-1){amount=amount.replace(currency.thousands_sep,'');}else if(''===currency.thousands_sep&&amount.indexOf('.')!==-1){amount=amount.replace('.','');} amount=amount.replace(currency.decimal_sep,'.');}else if(','===currency.thousands_sep&&(amount.indexOf(currency.thousands_sep)!==-1)){amount=amount.replace(currency.thousands_sep,'');} return app.numberFormat(amount,2,'.','');},amountFormat:function(amount){var currency=app.getCurrency();amount=String(amount);if(','===currency.decimal_sep&&(amount.indexOf(currency.decimal_sep)!==-1)){var sepFound=amount.indexOf(currency.decimal_sep),whole=amount.substr(0,sepFound),part=amount.substr(sepFound+1,amount.strlen-1);amount=whole+'.'+part;} if(','===currency.thousands_sep&&(amount.indexOf(currency.thousands_sep)!==-1)){amount=amount.replace(',','');} if(app.empty(amount)){amount=0;} return app.numberFormat(amount,2,currency.decimal_sep,currency.thousands_sep);},getCurrency:function(){var currency={code:'USD',thousands_sep:',',decimal_sep:'.',symbol:'$',symbol_pos:'left',};if(typeof wpforms_settings.currency_code!=='undefined'){currency.code=wpforms_settings.currency_code;} if(typeof wpforms_settings.currency_thousands!=='undefined'){currency.thousands_sep=wpforms_settings.currency_thousands;} if(typeof wpforms_settings.currency_decimal!=='undefined'){currency.decimal_sep=wpforms_settings.currency_decimal;} if(typeof wpforms_settings.currency_symbol!=='undefined'){currency.symbol=wpforms_settings.currency_symbol;} if(typeof wpforms_settings.currency_symbol_pos!=='undefined'){currency.symbol_pos=wpforms_settings.currency_symbol_pos;} return currency;},numberFormat:function(number,decimals,decimalSep,thousandsSep){number=(number+'').replace(/[^0-9+\-Ee.]/g,'');var n=!isFinite(+number)?0:+number;var prec=!isFinite(+decimals)?0:Math.abs(decimals);var sep=('undefined'===typeof thousandsSep)?',':thousandsSep;var dec=('undefined'===typeof decimalSep)?'.':decimalSep;var s;var toFixedFix=function(n,prec){var k=Math.pow(10,prec);return''+(Math.round(n*k)/k).toFixed(prec);};s=(prec?toFixedFix(n,prec):''+Math.round(n)).split('.');if(s[0].length>3){s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,sep);} if((s[1]||'').length-1?lang.split('-').pop():'';} callback(countryCode);});};},formSubmit:function($form){if($form.hasClass('wpforms-ajax-form')&&typeof FormData!=='undefined'){app.formSubmitAjax($form);}else{app.formSubmitNormal($form);}},formSubmitNormal:function($form){if(!$form.length){return;} var $submit=$form.find('.wpforms-submit'),recaptchaID=$submit.get(0).recaptchaID;if(!app.empty(recaptchaID)||recaptchaID===0){$submit.get(0).recaptchaID=false;} $form.get(0).submit();},resetFormRecaptcha:function($form){if(!$form||!$form.length){return;} if(typeof grecaptcha==='undefined'){return;} var recaptchaID;recaptchaID=$form.find('.wpforms-submit').get(0).recaptchaID;if(app.empty(recaptchaID)&&recaptchaID!==0){recaptchaID=$form.find('.g-recaptcha').data('recaptcha-id');} if(!app.empty(recaptchaID)||recaptchaID===0){grecaptcha.reset(recaptchaID);}},consoleLogAjaxError:function(error){if(error){console.error('WPForms AJAX submit error:\n%s',error);}else{console.error('WPForms AJAX submit error');}},displayFormAjaxErrors:function($form,errors){if('string'===typeof errors){app.displayFormAjaxGeneralErrors($form,errors);return;} errors='errors'in errors?errors.errors:null;if(app.empty(errors)||(app.empty(errors.general)&&app.empty(errors.field))){app.consoleLogAjaxError();return;} if(!app.empty(errors.general)){app.displayFormAjaxGeneralErrors($form,errors.general);} if(!app.empty(errors.field)){app.displayFormAjaxFieldErrors($form,errors.field);}},displayFormAjaxGeneralErrors:function($form,errors){if(!$form||!$form.length){return;} if(app.empty(errors)){return;} if('string'===typeof errors){$form.find('.wpforms-submit-container').before('
'+errors+'
');return;} $.each(errors,function(type,html){switch(type){case'header':$form.prepend(html);break;case'footer':$form.find('.wpforms-submit-container').before(html);break;case'recaptcha':$form.find('.wpforms-recaptcha-container').append(html);break;}});},clearFormAjaxGeneralErrors:function($form){$form.find('.wpforms-error-container').remove();$form.find('#wpforms-field_recaptcha-error').remove();},displayFormAjaxFieldErrors:function($form,errors){if(!$form||!$form.length){return;} if(app.empty(errors)){return;} var validator=$form.data('validator');if(!validator){return;} validator.showErrors(errors);validator.focusInvalid();},formSubmitAjax:function($form){if(!$form.length){return $.Deferred().reject();} var $container=$form.closest('.wpforms-container'),$spinner=$form.find('.wpforms-submit-spinner'),$confirmationScroll,formData,args;$container.css('opacity',0.6);$spinner.show();app.clearFormAjaxGeneralErrors($form);formData=new FormData($form.get(0));formData.append('action','wpforms_submit');formData.append('page_url',window.location.href);args={type:'post',dataType:'json',url:wpforms_settings.ajaxurl,data:formData,cache:false,contentType:false,processData:false,};args.success=function(json){if(!json){app.consoleLogAjaxError();return;} if(json.data&&json.data.action_required){$form.trigger('wpformsAjaxSubmitActionRequired',json);return;} if(!json.success){app.resetFormRecaptcha($form);app.displayFormAjaxErrors($form,json.data);$form.trigger('wpformsAjaxSubmitFailed',json);return;} $form.trigger('wpformsAjaxSubmitSuccess',json);if(!json.data){return;} if(json.data.redirect_url){$form.trigger('wpformsAjaxSubmitBeforeRedirect',json);window.location=json.data.redirect_url;return;} if(json.data.confirmation){$container.html(json.data.confirmation);$confirmationScroll=$container.find('div.wpforms-confirmation-scroll');if($confirmationScroll.length){app.animateScrollTop($confirmationScroll.offset().top-100);}}};args.error=function(jqHXR,textStatus,error){app.consoleLogAjaxError(error);$form.trigger('wpformsAjaxSubmitError',[jqHXR,textStatus,error]);};args.complete=function(jqHXR,textStatus){if(jqHXR.responseJSON&&jqHXR.responseJSON.data&&jqHXR.responseJSON.data.action_required){return;} var $submit=$form.find('.wpforms-submit'),submitText=$submit.data('submit-text');if(submitText){$submit.text(submitText);} $submit.prop('disabled',false);$container.css('opacity','');$spinner.hide();$form.trigger('wpformsAjaxSubmitCompleted',[jqHXR,textStatus]);};$form.trigger('wpformsAjaxBeforeSubmit');return $.ajax(args);},animateScrollTop:function(position,duration,complete){duration=duration||1000;complete=app.isFunction(complete)?complete:function(){};return $('html, body').animate({scrollTop:parseInt(position,10)},{duration:duration,complete:complete}).promise();},isFunction:function(object){return!!(object&&object.constructor&&object.call&&object.apply);},};return app;}(document,window,jQuery));wpforms.init();